|
@@ -38,6 +38,8 @@ public class SynProjectCollectionTask { |
|
|
private final Integer PAGE_NUMBER = 1; |
|
|
private final Integer PAGE_NUMBER = 1; |
|
|
private final Integer TASK_HOUR = 1; |
|
|
private final Integer TASK_HOUR = 1; |
|
|
|
|
|
|
|
|
|
|
|
private final Integer TASK_HOUR_TODAY = 18; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 前置机每天晚上10点自动清空,第二天早上6点获取数据 |
|
|
* 前置机每天晚上10点自动清空,第二天早上6点获取数据 |
|
|
* 定时同步前置机数据 每天1点开始执行一次 |
|
|
* 定时同步前置机数据 每天1点开始执行一次 |
|
@@ -59,7 +61,7 @@ public class SynProjectCollectionTask { |
|
|
|
|
|
|
|
|
//取昨天1点 到今天1点的 项目归集 |
|
|
//取昨天1点 到今天1点的 项目归集 |
|
|
ProjectListReq req = new ProjectListReq(); |
|
|
ProjectListReq req = new ProjectListReq(); |
|
|
req.setCreateOnMax(DateUtil.convertDateToLocal(DateUtil.getTodayTime(TASK_HOUR))); |
|
|
|
|
|
|
|
|
req.setCreateOnMax(DateUtil.convertDateToLocal(DateUtil.getTodayTime(TASK_HOUR_TODAY))); |
|
|
req.setCreateOnMin(DateUtil.convertDateToLocal(DateUtil.getTodayTime(TASK_HOUR)).plusDays(-1)); |
|
|
req.setCreateOnMin(DateUtil.convertDateToLocal(DateUtil.getTodayTime(TASK_HOUR)).plusDays(-1)); |
|
|
Long count = collectionManage.count(req); |
|
|
Long count = collectionManage.count(req); |
|
|
if(count == 0L){ |
|
|
if(count == 0L){ |
|
|