提交 600d5e8e authored 作者: inroi's avatar inroi

整合在一个记录里面。

上级 70cf6ff2
...@@ -47,17 +47,12 @@ public class ToDoTaskJob { ...@@ -47,17 +47,12 @@ public class ToDoTaskJob {
toDoTaskService.toDoTaskList(result); toDoTaskService.toDoTaskList(result);
dbHelper.executeUpdate("update t_wfr_assignSendInfo set ISSEND = '1' where ISSEND = '0'", null); dbHelper.executeUpdate("update t_wfr_assignSendInfo set ISSEND = '1' where ISSEND = '0'", null);
Console.log("定时器结束 toDoTaskList!"); Console.log("定时器结束 toDoTaskList!");
return RestResponse.success("同步成功");
}
@Scheduled(fixedDelay = 1000 * 10)
public RestResponse toDoTaskDetailList() {
Console.log("定时器开始 toDoTaskDetailList!"); Console.log("定时器开始 toDoTaskDetailList!");
DBHelper dbHelper = new DBHelper(dataSource); dbHelper = new DBHelper(dataSource);
Result result = dbHelper.executeQuery("select ID from t_wfr_assignSendInfo where ISSEND = '1' and ISUPDATE = '0' and ID not in (select FASSIGNID from t_wfr_assign_view)", null); result = dbHelper.executeQuery("select ID from t_wfr_assignSendInfo where ISSEND = '1' and ISUPDATE = '0' and ID not in (select FASSIGNID from t_wfr_assign_view)", null);
if(result == null) if(result == null)
{ {
...@@ -68,10 +63,10 @@ public class ToDoTaskJob { ...@@ -68,10 +63,10 @@ public class ToDoTaskJob {
Console.log("result不为空df"); Console.log("result不为空df");
} }
toDoTaskService.toDoTaskDetailList(result); toDoTaskService.toDoTaskDetailList(result);
dbHelper.executeUpdate("delete t_wfr_assignSendInfo where ID not in (select FASSIGNID from t_wfr_assign_view)", null); dbHelper.executeUpdate("delete t_wfr_assignSendInfo where ID not in (select FASSIGNID from t_wfr_assign_view)", null);
Console.log("定时器结束 toDoTaskDetailList!"); Console.log("定时器结束 toDoTaskDetailList!");
return RestResponse.success("同步成功"); return RestResponse.success("同步成功");
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论