|
|
@@ -110,20 +110,23 @@ public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem
|
|
|
.eq(StringUtils.isNotEmpty(sysSystemVo.getContactValue()),
|
|
|
SysSystem::getContact, sysSystemVo.getContactValue()).or()
|
|
|
.eq(StringUtils.isNotEmpty(sysSystemVo.getContactValue()),
|
|
|
- SysSystem::getTelephone, sysSystemVo.getContactValue());
|
|
|
+ SysSystem::getTelephone, sysSystemVo.getContactValue())
|
|
|
+ .eq(SysSystem::getIsTenant, 1);
|
|
|
Page<SysSystem> sysPage = page(page, wrapper);
|
|
|
return sysPage;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String queryById(String sysId) {
|
|
|
- return "";
|
|
|
+ public SysSystem queryById(String sysId) {
|
|
|
+ return this.baseMapper.selectById(sysId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public boolean sysAdd(SysSystemVo sysSystemVo) {
|
|
|
SysSystem sysSystem = new SysSystem();
|
|
|
BeanUtils.copyProperties(sysSystemVo, sysSystem);
|
|
|
+ sysSystem.setIsTenant(1);
|
|
|
+ sysSystem.setAvailable(1);
|
|
|
this.save(sysSystem);
|
|
|
/** 初始化租户管理员信息 */
|
|
|
return this.initAdmin(sysSystem);
|