Commit d1d3fac434ab338f38643c62382696e781667444

Authored by shiyang
1 parent fe51308060
Exists in master and in 1 other branch dev

子女关注患者推送bug

Showing 1 changed file with 1 additions and 1 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java View file @ d1d3fac
... ... @@ -230,7 +230,7 @@
230 230 //子女关注的患者推送短消息
231 231 public void pushPatientAttention(LymsPushMessages lymsPushMessage,Map map) throws Exception{
232 232 QueryWrapper<LymsPushAttentionRecord> queryWrapper=new QueryWrapper<>();
233   - queryWrapper.apply("TO_DAYS(created_time) = TO_DAYS(NOW()) and isweixin_state=0");//今天需要推送的消息
  233 + queryWrapper.apply("TO_DAYS(created_time) = TO_DAYS(NOW()) and isweixin_state=0 and pa_id={0}",lymsPushMessage.getPid());//今天需要推送的消息
234 234 final List<LymsPushAttentionRecord> pushAttentionRecords = lymsPushAttentionRecordService.list(queryWrapper);
235 235 for (LymsPushAttentionRecord pushAttentionRecord : pushAttentionRecords) {
236 236 Map<String,Object> mapInfo =pLoginInfo(pushAttentionRecord.getPid());