Commit dcaafddd0c4796969786906360ee3a82abd8c8c2
1 parent
c093eebfb5
Exists in
master
and in
6 other branches
产检过期提醒短信生成服务端
Showing 1 changed file with 3 additions and 1 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/worker/TempleteMsgGenerateWorker.java
View file @
dcaafdd
| ... | ... | @@ -4,6 +4,7 @@ |
| 4 | 4 | import com.lyms.platform.beans.MsgRequest; |
| 5 | 5 | import com.lyms.platform.biz.service.*; |
| 6 | 6 | import com.lyms.platform.common.enums.*; |
| 7 | +import com.lyms.platform.common.utils.DateUtil; | |
| 7 | 8 | import com.lyms.platform.common.utils.StringUtils; |
| 8 | 9 | import com.lyms.platform.msg.service.IBaseService; |
| 9 | 10 | import com.lyms.platform.msg.utils.DateUtils; |
| 10 | 11 | |
| ... | ... | @@ -877,9 +878,10 @@ |
| 877 | 878 | //如果范围内没有记录则发送推送或者短信 |
| 878 | 879 | //发送短信集合 |
| 879 | 880 | //该提醒的预约产检时间 |
| 880 | - Date yuYueDate = DateUtils.addDay(new Date(), sendTimeType); | |
| 881 | + Date yuYueDate = DateUtils.addDay(DateUtil.getYMDTime(), sendTimeType); | |
| 881 | 882 | |
| 882 | 883 | patientsQuery.setIsNextCheckTime(yuYueDate); |
| 884 | + System.out.println("查询产检时间:"+patientsQuery.convertToQuery().convertToMongoQuery()); | |
| 883 | 885 | //查指定预约下次产检时间 |
| 884 | 886 | List<Patients> patients = yunBookbuildingService.queryPregnantWithQuery(patientsQuery); |
| 885 | 887 |