|
@@ -357,8 +357,14 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
tenantStaffMapper.update(null, Wrappers.<TenantStaff>lambdaUpdate()
|
|
|
.set(TenantStaff::getStatus, UserLockFlag.LOCKED)
|
|
|
.eq(TenantStaff::getTenantId, updateStatus.getId()));
|
|
|
+ } else {
|
|
|
+ tenantStaffMapper.update(null, Wrappers.<TenantStaff>lambdaUpdate()
|
|
|
+ .set(TenantStaff::getStatus, UserLockFlag.NORMAL)
|
|
|
+ .eq(TenantStaff::getTenantId, updateStatus.getId()));
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
if (updateStatus.getSettlement() != null) {
|
|
|
teacherDao.update(null, Wrappers.<Teacher>lambdaUpdate()
|
|
|
.set(Teacher::getSettlementFrom, updateStatus.getSettlement())
|
|
@@ -393,6 +399,13 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
// todo 设置默认logo
|
|
|
info.setLogo(sysConfigService.findConfigValue(SysConfigConstant.TENANT_DEFAULT_HEAD));
|
|
|
}
|
|
|
+
|
|
|
+ Long id;
|
|
|
+ if(sysUser.getId() == null){
|
|
|
+ id = info.getUserId();
|
|
|
+ } else {
|
|
|
+ id = sysUser.getId();
|
|
|
+ }
|
|
|
tenantInfoMapper.update(null, Wrappers.<TenantInfo>lambdaUpdate()
|
|
|
.set(TenantInfo::getName, info.getName())
|
|
|
.set(TenantInfo::getLogo, info.getLogo())
|
|
@@ -402,7 +415,7 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
.set(TenantInfo::getRegionCode, info.getRegionCode())
|
|
|
.set(TenantInfo::getPhone, info.getPhone())
|
|
|
.set(TenantInfo::getUsername, info.getUsername())
|
|
|
- .set(TenantInfo::getUserId, sysUser.getId())
|
|
|
+ .set(TenantInfo::getUserId, id)
|
|
|
.eq(TenantInfo::getId, info.getId())
|
|
|
);
|
|
|
return true;
|