|
|
@ -670,6 +670,9 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem |
|
|
|
userDto.setParentDeptNames(parentAndAllDeptDTOResult.getData().getParentDeptNames()); |
|
|
|
|
|
|
|
UserEntity userEntity = ConvertUtils.sourceToTarget(userDto, UserEntity.class); |
|
|
|
if (null == userDto.getFaceImg() || "".equals(userDto.getFaceImg())) { |
|
|
|
userEntity.setFaceImg(oldEntity.getFaceImg()); |
|
|
|
} |
|
|
|
boolean updateUser = this.updateById(userEntity); |
|
|
|
if (!updateUser) { |
|
|
|
throw new RenException("保存用户信息异常"); |
|
|
|