Переглянути джерело

Merge branch 'feature-V2.0' of ssh://git.mooctest.com:1022/crowd-2019/crowd-test-service-backend into feature-V2.0

git 5 роки тому
батько
коміт
f9648171d3

+ 3 - 3
site/src/main/java/com/mooctest/crowd/site/mediator/impl/WebMediatorImpl.java

@@ -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());