Commit d73e5020026ebb7e6a3431a838b01e96a0a4f3fe
1 parent
4f6b2f35a3
Exists in
master
update
Showing 1 changed file with 2 additions and 6 deletions
talkonlineweb/src/main/java/com/lyms/talkonlineweb/task/PushArticleTask.java
View file @
d73e502
| ... | ... | @@ -51,7 +51,6 @@ |
| 51 | 51 | */ |
| 52 | 52 | @Scheduled(cron = "0 0 18 * * ?") |
| 53 | 53 | // @Scheduled(cron = "0 15 17 * * ?")//测试用 下午5点15 |
| 54 | - @Transactional(rollbackFor = Exception.class) | |
| 55 | 54 | public void pushArtcle(){ |
| 56 | 55 | Map<String,Object> param=new HashMap<>(); |
| 57 | 56 | param.put("vtype",999); |
| ... | ... | @@ -217,10 +216,7 @@ |
| 217 | 216 | String plogin=null; |
| 218 | 217 | LymsPatient lymsPatient = lymsPatientService.getById(pid); |
| 219 | 218 | if(StringUtil.isNotEmpty(lymsPatient.getEnrolmentPhone())){ |
| 220 | - if(StringUtil.isNotEmpty(lymsPatient.getEnrolmentPhone())){ | |
| 221 | - plogin=lymsPatient.getEnrolmentPhone(); | |
| 222 | - } | |
| 223 | - | |
| 219 | + plogin=lymsPatient.getEnrolmentPhone(); | |
| 224 | 220 | }else { |
| 225 | 221 | List<PatientInfo> pLst=patientInfoService.list(new QueryWrapper<PatientInfo>().eq("id", lymsPatient.getId())); |
| 226 | 222 | if(CollectionUtils.isNotEmpty(pLst)){ |
| ... | ... | @@ -232,7 +228,7 @@ |
| 232 | 228 | return map; |
| 233 | 229 | } |
| 234 | 230 | //子女关注的患者推送短消息 |
| 235 | - public void pushPatientAttention(LymsPushMessages lymsPushMessage,Map map){ | |
| 231 | + public void pushPatientAttention(LymsPushMessages lymsPushMessage,Map map) throws Exception{ | |
| 236 | 232 | QueryWrapper<LymsPushAttentionRecord> queryWrapper=new QueryWrapper<>(); |
| 237 | 233 | queryWrapper.apply("TO_DAYS(created_time) = TO_DAYS(NOW()) and isweixin_state=0");//今天需要推送的消息 |
| 238 | 234 | final List<LymsPushAttentionRecord> pushAttentionRecords = lymsPushAttentionRecordService.list(queryWrapper); |