|
@@ -1,14 +1,24 @@
|
|
|
package com.jzg.service.impl;
|
|
package com.jzg.service.impl;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.jzg.entity.po.SysSystem;
|
|
import com.jzg.entity.po.SysSystem;
|
|
|
|
|
+import com.jzg.entity.vo.SysSystemVo;
|
|
|
import com.jzg.mapper.SysSystemMapper;
|
|
import com.jzg.mapper.SysSystemMapper;
|
|
|
import com.jzg.service.SysSystemService;
|
|
import com.jzg.service.SysSystemService;
|
|
|
|
|
+import com.jzg.util.StringUtils;
|
|
|
|
|
+import jodd.util.StringUtil;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * 租户管理表 服务层处理 sys_system
|
|
|
|
|
+ *
|
|
|
|
|
+ * @author dongxin
|
|
|
|
|
+ */
|
|
|
@Service
|
|
@Service
|
|
|
-public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem> implements SysSystemService {
|
|
|
|
|
|
|
+public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem>
|
|
|
|
|
+ implements SysSystemService {
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 根据SystemCode 查询 System对象
|
|
* 根据SystemCode 查询 System对象
|
|
@@ -16,7 +26,7 @@ public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem
|
|
|
* @return
|
|
* @return
|
|
|
*/
|
|
*/
|
|
|
@Override
|
|
@Override
|
|
|
- public SysSystem getBySystemCode(String systemCode) {
|
|
|
|
|
|
|
+ public SysSystem getBySystemCode(Long systemCode) {
|
|
|
return this.getOne(new LambdaQueryWrapper<SysSystem>()
|
|
return this.getOne(new LambdaQueryWrapper<SysSystem>()
|
|
|
.eq(SysSystem::getSysCode, systemCode));
|
|
.eq(SysSystem::getSysCode, systemCode));
|
|
|
}
|
|
}
|
|
@@ -32,4 +42,24 @@ public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem
|
|
|
.eq(SysSystem::getSysCode, systemCode));
|
|
.eq(SysSystem::getSysCode, systemCode));
|
|
|
return count > 0;
|
|
return count > 0;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public Page<SysSystem> queryPage(Page page, SysSystemVo sysSystemVo) {
|
|
|
|
|
+ LambdaQueryWrapper<SysSystem> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ wrapper.eq(StringUtils.isNotEmpty(sysSystemVo.getProvinceId()), SysSystem::getProvinceId, sysSystemVo.getProvinceId())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(sysSystemVo.getCityId()), SysSystem::getCityId, sysSystemVo.getCityId())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(sysSystemVo.getDistrictId()), SysSystem::getDistrictId, sysSystemVo.getDistrictId())
|
|
|
|
|
+ .eq(StringUtils.isNotNull(sysSystemVo.getSysType()), SysSystem::getSysType, sysSystemVo.getSysType())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(sysSystemVo.getSearchValue()), SysSystem::getSysName, sysSystemVo.getSearchValue())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(sysSystemVo.getSearchValue()), SysSystem::getSysCode, sysSystemVo.getSearchValue())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(sysSystemVo.getContactValue()), SysSystem::getContact, sysSystemVo.getContactValue())
|
|
|
|
|
+ .eq(StringUtils.isNotEmpty(sysSystemVo.getContactValue()), SysSystem::getTelephone, sysSystemVo.getContactValue());
|
|
|
|
|
+ Page<SysSystem> sysPage = page(page, wrapper);
|
|
|
|
|
+ return sysPage;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|