Commit f892dccc44ffc5d7a4934e01666d9499558a5fb1
1 parent
537e5fa1a4
Exists in
master
and in
1 other branch
code update
Showing 1 changed file with 2 additions and 2 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
f892dcc
... | ... | @@ -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 | } |