mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
用户管理:允许修改手机号的前提同步修改username补充
This commit is contained in:
+2
@@ -194,6 +194,8 @@ public class AdminUserServiceImpl implements AdminUserService {
|
||||
if (ObjectUtil.isNotNull(adminUserDO) && !StringUtils.equals(adminUserDO.getUsername(), mobile)) {
|
||||
if(StringUtils.isNotEmpty(adminUserDO.getPassword())) {
|
||||
throw ServiceExceptionUtil.exception(USER_MOBILE_UPDATE_NOT_ALLOW_ERROR);
|
||||
} else {
|
||||
updateObj.setUsername(mobile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user