Commit 76390b8c275e40fe71b20b5bdaf1ea11bacc2252
1 parent
feabdf95c3
Exists in
master
and in
6 other branches
预约短信
Showing 1 changed file with 4 additions and 2 deletions
platform-msg-generate/src/main/java/com/lyms/platform/msg/worker/TempleteMsgGenerateWorker.java
View file @
76390b8
| ... | ... | @@ -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 | |
| ... | ... | @@ -570,9 +571,10 @@ |
| 570 | 571 | |
| 571 | 572 | Date orderDate = DateUtils.addDay(new Date(), sendTimeType); |
| 572 | 573 | orderDate = DateUtils.formatDate(orderDate,DateUtils.Y_M_D); |
| 574 | + System.out.print("========="+DateUtils.getDateStr(orderDate, DateUtils.Y_M_D)); | |
| 573 | 575 | |
| 574 | - List<BabyEyeCheck> checkModels = mongoTemplate.find(Query.query(Criteria.where("nextCheckTime").is(orderDate) | |
| 575 | - .and("yn").ne("1").and("hospitalId").is(tempHid)), BabyEyeCheck.class); | |
| 576 | + List<BabyEyeCheck> checkModels = mongoTemplate.find(Query.query(Criteria.where("nextCheckTime").gte(orderDate).lt(DateUtils.addDay(orderDate, 1)) | |
| 577 | + .and("yn").is("1").and("hospitalId").is(tempHid)), BabyEyeCheck.class); | |
| 576 | 578 | if (CollectionUtils.isNotEmpty(checkModels)) |
| 577 | 579 | { |
| 578 | 580 | for(BabyEyeCheck eyecheck : checkModels) |