Commit 3401e59fe43658bfa0738d314600f0a5bbe4fd35
1 parent
cdd8d3e9b5
Exists in
master
and in
6 other branches
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 @
3401e59
... | ... | @@ -94,7 +94,9 @@ |
94 | 94 | public BaseObjectResponse queryBabyNutritionRecord(String babyId) { |
95 | 95 | Map<String, Object> resMap = new HashMap<>(); |
96 | 96 | BabyBasicResult base = new BabyBasicResult(); |
97 | - babyCheckFacade.getBabyModel(babyId, base); | |
97 | + BabyModel babyModel = babyCheckFacade.getBabyModel(babyId, base); | |
98 | + base.setMonth(DateUtil.getMonth(babyModel.getBirth(), new Date())); | |
99 | + | |
98 | 100 | BaseObjectResponse br = new BaseObjectResponse(); |
99 | 101 | |
100 | 102 | List<Map<String, String>> list = new ArrayList<>(); |