Commit f96543501193881ddde2611d677e723566e8fe6f
1 parent
29d4a7fa79
Exists in
master
and in
1 other branch
儿童查询
Showing 1 changed file with 8 additions and 0 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/BabyBookbuildingFacade.java
View file @
f965435
| ... | ... | @@ -1710,6 +1710,14 @@ |
| 1710 | 1710 | babyQuery.setBirthStart(DateUtil.parseYMD(dates[0])); |
| 1711 | 1711 | babyQuery.setBirthEnd(DateUtil.parseYMD(dates[1])); |
| 1712 | 1712 | } |
| 1713 | + else if (request.getMonthAgeStart() != null && request.getMonthAgeEnd() != null) | |
| 1714 | + { | |
| 1715 | + Date start = DateUtil.addMonth(currentDate, -request.getMonthAgeStart()); | |
| 1716 | + babyQuery.setBirthEnd(start); | |
| 1717 | + | |
| 1718 | + Date end = DateUtil.addDay(DateUtil.addMonth(currentDate, -request.getMonthAgeEnd() - 1), 1); | |
| 1719 | + babyQuery.setBirthStart(end); | |
| 1720 | + } | |
| 1713 | 1721 | else if (request.getMonthAgeStart() != null) |
| 1714 | 1722 | { |
| 1715 | 1723 | Date start = DateUtil.addMonth(currentDate, -request.getMonthAgeStart()); |