Commit 042dafbf67218372adafde7d235e337616ddae90
1 parent
0494ff93ee
Exists in
master
and in
8 other branches
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 @
042dafb
... | ... | @@ -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 | } |