diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java index 3efe1d9..edb3fa8 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java @@ -230,7 +230,7 @@ public class PushArticleTask { //子女关注的患者推送短消息 public void pushPatientAttention(LymsPushMessages lymsPushMessage,Map map) throws Exception{ QueryWrapper queryWrapper=new QueryWrapper<>(); - queryWrapper.apply("TO_DAYS(created_time) = TO_DAYS(NOW()) and isweixin_state=0");//今天需要推送的消息 + queryWrapper.apply("TO_DAYS(created_time) = TO_DAYS(NOW()) and isweixin_state=0 and pa_id={0}",lymsPushMessage.getPid());//今天需要推送的消息 final List pushAttentionRecords = lymsPushAttentionRecordService.list(queryWrapper); for (LymsPushAttentionRecord pushAttentionRecord : pushAttentionRecords) { Map mapInfo =pLoginInfo(pushAttentionRecord.getPid());