Commit 1ad8c89d25fc885259f5c2fc118a94aaeed682ac

Authored by liquanyu
1 parent 94bdf4aa27

update

Showing 1 changed file with 11 additions and 0 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyCheckFacade.java View file @ 1ad8c89
... ... @@ -1200,8 +1200,19 @@
1200 1200 if (StringUtils.isNotEmpty(checkDate)) {
1201 1201 date = DateUtil.parseYMD(checkDate);
1202 1202 }
  1203 +
  1204 + boolean isShowNavel = false;
  1205 + int monthes = DateUtil.getBabyAgeMonth(birthDate,date);
  1206 + if (monthes == 1 || monthes == 3)
  1207 + {
  1208 + isShowNavel = true;
  1209 + }
  1210 +
1203 1211 String ageStr = DateUtil.getBabyMonthAge(birthDate, date);
1204 1212 BaseObjectResponse objectResponse = new BaseObjectResponse();
  1213 + Map<String,Object> map = new HashMap<>();
  1214 + map.put("monthAge",ageStr);
  1215 + map.put("isShowNavel",isShowNavel);
1205 1216 objectResponse.setData(ageStr);
1206 1217 objectResponse.setErrorcode(ErrorCodeConstants.SUCCESS);
1207 1218 objectResponse.setErrormsg("成功");