Commit 1811966f7132e4e7261b0e19dc62adee5ddbcfb7

Authored by liquanyu
1 parent 3401e59fe4

update

Showing 1 changed file with 3 additions and 1 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyNutritionFacade.java View file @ 1811966
... ... @@ -95,7 +95,9 @@
95 95 Map<String, Object> resMap = new HashMap<>();
96 96 BabyBasicResult base = new BabyBasicResult();
97 97 BabyModel babyModel = babyCheckFacade.getBabyModel(babyId, base);
98   - base.setMonth(DateUtil.getMonth(babyModel.getBirth(), new Date()));
  98 + int month = DateUtil.getMonth(babyModel.getBirth(), new Date());
  99 + month = month == 5 ? 6 : month;
  100 + base.setMonth(month);
99 101  
100 102 BaseObjectResponse br = new BaseObjectResponse();
101 103