Commit cd8ffaa2211f2d0a91733a13b06e218f2348cd98
Exists in
master
and in
8 other branches
Merge remote-tracking branch 'origin/master'
Showing 1 changed file
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
cd8ffaa
... | ... | @@ -1392,8 +1392,8 @@ |
1392 | 1392 | if (request.getMonthAgeStart() != null && request.getMonthAgeEnd() != null) { |
1393 | 1393 | |
1394 | 1394 | Date currentDate = DateUtil.formatDate(new Date()); |
1395 | - Date start = DateUtil.addDay(DateUtil.addMonth(currentDate, -request.getMonthAgeStart()),-1); | |
1396 | - Date end = DateUtil.addMonth(currentDate, -request.getMonthAgeEnd() - 1); | |
1395 | + Date start = DateUtil.addMonth(currentDate, -request.getMonthAgeStart()); | |
1396 | + Date end = DateUtil.addDay(DateUtil.addMonth(currentDate, -request.getMonthAgeEnd() - 1),1); | |
1397 | 1397 | babyQuery.setBirthStart(end); |
1398 | 1398 | babyQuery.setBirthEnd(start); |
1399 | 1399 | } |