Commit d5a0e629e55ab91e3faf4a771c880eeb5a1f3458

Authored by liquanyu
1 parent a2d88fa57d

update

Showing 1 changed file with 6 additions and 2 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BabyEvaluationCriterionServiceImpl.java View file @ d5a0e62
... ... @@ -66,8 +66,12 @@
66 66 if (month > 84) {
67 67 return new BaseResponse().setErrorcode(ErrorCodeConstants.PARAMETER_ERROR).setErrormsg("操作失败,当前儿童年龄大于7岁");
68 68 }
69   - months = getInts(months, month);
70   - stringObjectMap = getListMap(months, babyId, checkMonth, id);
  69 + if (month > 0)
  70 + {
  71 + months = getInts(months, month);
  72 + stringObjectMap = getListMap(months, babyId, checkMonth, id);
  73 + }
  74 +
71 75 }
72 76 }
73 77 BaseResponse baseResponse = new BaseResponse();