|
@@ -91,31 +91,31 @@ public class ToDoMessagePushJob extends BaseJob2 {
|
|
|
send = 0;
|
|
send = 0;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (send !=0){
|
|
|
|
|
- String theme = content.toString();
|
|
|
|
|
- subject = subject.substring(0, subject.lastIndexOf("#")).trim();
|
|
|
|
|
- if (send ==1){
|
|
|
|
|
- subject = subject +";已超时,请及时处理!";
|
|
|
|
|
- }else {
|
|
|
|
|
- subject = subject +";即将超时,请及时处理!";
|
|
|
|
|
- }
|
|
|
|
|
- // 发送消息
|
|
|
|
|
- Map<String, Object> vars = new HashMap<>();
|
|
|
|
|
- vars.put("taskId",taskId);
|
|
|
|
|
- MessageQueueProductorUtil.send("job_task_", "job_task_" , "inner" , receiver,null , theme, subject, null, null, vars);
|
|
|
|
|
- //MessageQueueProductorUtil.send("inner" , receiver ,null , theme , subject ,null );
|
|
|
|
|
|
|
+ }
|
|
|
|
|
+ if (send !=0){
|
|
|
|
|
+ String theme = content.toString();
|
|
|
|
|
+ subject = subject.substring(0, subject.lastIndexOf("#")).trim();
|
|
|
|
|
+ if (send ==1){
|
|
|
|
|
+ subject = subject +";已超时,请及时处理!";
|
|
|
|
|
+ }else {
|
|
|
|
|
+ subject = subject +";即将超时,请及时处理!";
|
|
|
|
|
+ }
|
|
|
|
|
+ // 发送消息
|
|
|
|
|
+ Map<String, Object> vars = new HashMap<>();
|
|
|
|
|
+ vars.put("taskId",taskId);
|
|
|
|
|
+ MessageQueueProductorUtil.send("job_task_", "job_task_" , "inner" , receiver,null , theme, subject, null, null, vars);
|
|
|
|
|
+ //MessageQueueProductorUtil.send("inner" , receiver ,null , theme , subject ,null );
|
|
|
|
|
|
|
|
- // 添加过期事务表数据
|
|
|
|
|
- addGqswData(task , taskId , createTime , send);
|
|
|
|
|
|
|
+ // 添加过期事务表数据
|
|
|
|
|
+ addGqswData(task , taskId , createTime , send);
|
|
|
|
|
|
|
|
- // delete processed task message
|
|
|
|
|
- commonDao.execute("delete from ibps_msg_inner where task_id_ <>'' and task_id_ not in(select id_ from ibps_bpm_tasks)");
|
|
|
|
|
|
|
+ // delete processed task message
|
|
|
|
|
+ commonDao.execute("delete from ibps_msg_inner where task_id_ <>'' and task_id_ not in(select id_ from ibps_bpm_tasks)");
|
|
|
|
|
|
|
|
- commonDao.execute("delete from ibps_msg_read where MSG_ID_ not in(select id_ from ibps_msg_inner)");
|
|
|
|
|
|
|
+ commonDao.execute("delete from ibps_msg_read where MSG_ID_ not in(select id_ from ibps_msg_inner)");
|
|
|
|
|
|
|
|
- commonDao.execute("delete from ibps_msg_receiver where MSG_ID_ not in(select id_ from ibps_msg_inner)");
|
|
|
|
|
|
|
+ commonDao.execute("delete from ibps_msg_receiver where MSG_ID_ not in(select id_ from ibps_msg_inner)");
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}catch (Exception e){
|
|
}catch (Exception e){
|