Browse Source

修改完善信息删除用户头像问题

feature/syp_points
liuchuang 5 years ago
parent
commit
74daadc84d
  1. 3
      esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java

3
esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java

@ -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("保存用户信息异常");

Loading…
Cancel
Save