mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
禅道#949修复
This commit is contained in:
-2
@@ -257,10 +257,8 @@ public class AdminUserServiceImpl implements AdminUserService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void updateUserProfile(Long id, UserProfileUpdateReqVO reqVO) {
|
public void updateUserProfile(Long id, UserProfileUpdateReqVO reqVO) {
|
||||||
Long organId = reqVO.getOrganId() == null ? OrganContextHolder.getOrganId() : reqVO.getOrganId();
|
|
||||||
// 校验正确性
|
// 校验正确性
|
||||||
validateUserExists(id);
|
validateUserExists(id);
|
||||||
validateEmailUnique(id, reqVO.getEmail(), organId);
|
|
||||||
// 执行更新
|
// 执行更新
|
||||||
userMapper.updateById(BeanUtils.toBean(reqVO, AdminUserDO.class).setId(id));
|
userMapper.updateById(BeanUtils.toBean(reqVO, AdminUserDO.class).setId(id));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user