Commit afdff8759503a5d0d97c5f6b304fd00d3ed79b9a
1 parent
1811966f71
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 @
afdff87
| ... | ... | @@ -195,7 +195,9 @@ |
| 195 | 195 | BabyModel babyModel = babyBookbuildingService.queryBabyById(models.get(0).getBabyId()); |
| 196 | 196 | if (babyModel != null) |
| 197 | 197 | { |
| 198 | - result.setCheckMonth(DateUtil.getBabyMonthAge1(babyModel.getBirth(),models.get(0).getNutritiTime())); | |
| 198 | + int checkMonth = DateUtil.getBabyMonthAge1(babyModel.getBirth(),models.get(0).getNutritiTime()); | |
| 199 | + checkMonth = checkMonth == 5 ? 6 : checkMonth; | |
| 200 | + result.setCheckMonth(checkMonth); | |
| 199 | 201 | } |
| 200 | 202 | |
| 201 | 203 | Organization org = organizationService.getOrganization(Integer.parseInt(result.getHospitalId())); |