Commit 537e5fa1a4b40d383fd625019037142d7505eeb7
Exists in
master
and in
1 other branch
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 @
537e5fa
... | ... | @@ -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.addMonth(currentDate, -request.getMonthAgeStart()); | |
1396 | - Date end = DateUtil.addDay(DateUtil.addMonth(currentDate, -request.getMonthAgeEnd()-1),-1); | |
1395 | + Date start = DateUtil.addDay(DateUtil.addMonth(currentDate, -request.getMonthAgeStart()),-1); | |
1396 | + Date end = DateUtil.addMonth(currentDate, -request.getMonthAgeEnd() - 1); | |
1397 | 1397 | babyQuery.setBirthStart(end); |
1398 | 1398 | babyQuery.setBirthEnd(start); |
1399 | 1399 | } |