|
|
@@ -119,7 +119,8 @@ public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem
|
|
|
SysSystem::getContact, sysSystemVo.getContactValue()).or()
|
|
|
.eq(StringUtils.isNotEmpty(sysSystemVo.getContactValue()),
|
|
|
SysSystem::getTelephone, sysSystemVo.getContactValue())
|
|
|
- .eq(SysSystem::getIsTenant, 1);
|
|
|
+ .eq(SysSystem::getIsTenant, 1)
|
|
|
+ .ne(SysSystem::getParentId, 0);
|
|
|
Page<SysSystem> sysPage = page(page, wrapper);
|
|
|
List<SysSystem> sysSystemList = sysPage.getRecords();
|
|
|
if(CollUtil.isNotEmpty(sysSystemList)){
|
|
|
@@ -157,6 +158,7 @@ public class SysSystemServiceImpl extends ServiceImpl<SysSystemMapper, SysSystem
|
|
|
BeanUtils.copyProperties(sysSystemVo, sysSystem);
|
|
|
sysSystem.setIsTenant(1);
|
|
|
sysSystem.setAvailable(1);
|
|
|
+ sysSystem.setParentId("1");
|
|
|
this.save(sysSystem);
|
|
|
|
|
|
/** 初始化租户管理员信息 */
|