Browse Source

errccode修改

gaodm 6 years ago
parent
commit
d51a35ee8f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      triage-service/src/main/java/com/diagbot/facade/PartFacade.java

+ 4 - 4
triage-service/src/main/java/com/diagbot/facade/PartFacade.java

@@ -39,19 +39,19 @@ public class PartFacade extends PartServiceImpl {
     public List<PartSymptomDTO> getSymptomByPartIds(PartSymptomVO partSymptomVO) {
         List<Long> partIds = partSymptomVO.getPartIds();
         if(ListUtil.isEmpty(partIds)) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
+            throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
                     "请选择部位");
         }
         if(partSymptomVO.getSexType() == null) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
+            throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
                     "请选择性别");
         }
         if(partSymptomVO.getAge() == null) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
+            throw new CommonException(CommonErrorCode.PARAM_IS_NULL,
                     "请选择年龄");
         }
         if(partSymptomVO.getAge().intValue() < 0 || partSymptomVO.getAge().intValue() > 200) {
-            throw new CommonException(CommonErrorCode.SERVER_IS_ERROR,
+            throw new CommonException(CommonErrorCode.PARAM_IS_ERROR,
                     "超出年龄范围【0 — 200】");
         }
         //添加默认部位-全身