|
@@ -1190,9 +1190,9 @@ public class WebMediatorImpl implements ViewMediator {
|
|
|
@Override
|
|
|
public UserDTO updateInformation(long userId, UserVO userVO) {
|
|
|
Optional<UserPO> userPO = userDao.findById(userId);
|
|
|
- if (userVO.getUnit() == null || userVO.getUnit().length() <= 0) {
|
|
|
- throw new HttpBadRequestException("请输入企业简称");
|
|
|
- }
|
|
|
+// if (userVO.getUnit() == null || userVO.getUnit().length() <= 0) {
|
|
|
+// throw new HttpBadRequestException("请输入企业简称");
|
|
|
+// }
|
|
|
userPO.get().setPhotoUrl(userVO.getPhotoUrl());
|
|
|
userPO.get().setUnit(userVO.getUnit());
|
|
|
userPO.get().setGender(userVO.getGender());
|