|
@@ -28,6 +28,7 @@ import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import com.yonge.cooleshow.common.enums.SysUserType;
|
|
|
import com.yonge.cooleshow.common.enums.UserLockFlag;
|
|
|
import com.yonge.toolset.base.exception.BizException;
|
|
|
+import com.yonge.toolset.utils.obj.ObjectUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -380,11 +381,13 @@ public class TenantInfoServiceImpl extends ServiceImpl<TenantInfoMapper, TenantI
|
|
|
TenantInfo oldTenantInfo = this.getById(info.getId());
|
|
|
SysUser sysUser = getAccount(info, oldTenantInfo);
|
|
|
|
|
|
- tenantStaffMapper.update(null, Wrappers.<TenantStaff>lambdaUpdate()
|
|
|
+ if (sysUser.getId() != null){
|
|
|
+ tenantStaffMapper.update(null, Wrappers.<TenantStaff>lambdaUpdate()
|
|
|
.set(TenantStaff::getUserId, sysUser.getId())
|
|
|
.set(TenantStaff::getNickname, info.getUsername())
|
|
|
.eq(TenantStaff::getUserId, oldTenantInfo.getUserId())
|
|
|
- );
|
|
|
+ );}
|
|
|
+
|
|
|
|
|
|
if (StringUtils.isEmpty(info.getLogo())) {
|
|
|
// todo 设置默认logo
|