Commit c093eebfb5670daf9bb0e263971e59ec548f0bf1
1 parent
5089d92d44
Exists in
master
and in
6 other branches
产检过期提醒短信生成服务端
Showing 3 changed files with 14 additions and 2 deletions
platform-dal/src/main/java/com/lyms/platform/query/PatientsQuery.java
View file @
c093eeb
| ... | ... | @@ -515,6 +515,7 @@ |
| 515 | 515 | private Date fmDateStart; |
| 516 | 516 | private Date fmDateEnd; |
| 517 | 517 | private Date nextCheckTime; |
| 518 | + private Date isNextCheckTime; | |
| 518 | 519 | private Date nextCheckTimeStart; |
| 519 | 520 | private Date nextCheckTimeEnd; |
| 520 | 521 | |
| ... | ... | @@ -563,6 +564,14 @@ |
| 563 | 564 | |
| 564 | 565 | private String blNum; |
| 565 | 566 | |
| 567 | + public Date getIsNextCheckTime() { | |
| 568 | + return isNextCheckTime; | |
| 569 | + } | |
| 570 | + | |
| 571 | + public void setIsNextCheckTime(Date isNextCheckTime) { | |
| 572 | + this.isNextCheckTime = isNextCheckTime; | |
| 573 | + } | |
| 574 | + | |
| 566 | 575 | public Date getNextCheckTime() { |
| 567 | 576 | return nextCheckTime; |
| 568 | 577 | } |
| ... | ... | @@ -1667,6 +1676,10 @@ |
| 1667 | 1676 | |
| 1668 | 1677 | if (null != nextCheckTime) { |
| 1669 | 1678 | condition = condition.and("nextCheckTime", nextCheckTime, MongoOper.NE); |
| 1679 | + } | |
| 1680 | + | |
| 1681 | + if (null != isNextCheckTime) { | |
| 1682 | + condition = condition.and("nextCheckTime", isNextCheckTime, MongoOper.IS); | |
| 1670 | 1683 | } |
| 1671 | 1684 | |
| 1672 | 1685 | if (StringUtils.isNotEmpty(fmHospital)) { |
platform-msg-generate/src/main/java/com/lyms/platform/msg/worker/TempleteMsgGenerateWorker.java
View file @
c093eeb
| ... | ... | @@ -879,7 +879,7 @@ |
| 879 | 879 | //该提醒的预约产检时间 |
| 880 | 880 | Date yuYueDate = DateUtils.addDay(new Date(), sendTimeType); |
| 881 | 881 | |
| 882 | - patientsQuery.setNextCheckTimeStart(yuYueDate); | |
| 882 | + patientsQuery.setIsNextCheckTime(yuYueDate); | |
| 883 | 883 | //查指定预约下次产检时间 |
| 884 | 884 | List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); |
| 885 | 885 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/ModularFunctionConfigController.java
View file @
c093eeb