diff --git a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java b/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java index 59c2517f..e72b6e92 100644 --- a/esua-epdc/epdc-module/epdc-user/epdc-user-server/src/main/java/com/elink/esua/epdc/service/impl/UserServiceImpl.java +++ b/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 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("保存用户信息异常");