Przeglądaj źródła

debug IRS接口

master
PoffyZhang 1 rok temu
rodzic
commit
2c502ccff3
1 zmienionych plików z 3 dodań i 1 usunięć
  1. +3
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java

+ 3
- 1
pmapi/src/main/java/com/ningdatech/pmapi/scheduler/task/SynProjectCollectionTask.java Wyświetl plik

@@ -38,6 +38,8 @@ public class SynProjectCollectionTask {
private final Integer PAGE_NUMBER = 1;
private final Integer TASK_HOUR = 1;

private final Integer TASK_HOUR_TODAY = 18;

/**
* 前置机每天晚上10点自动清空,第二天早上6点获取数据
* 定时同步前置机数据 每天1点开始执行一次
@@ -59,7 +61,7 @@ public class SynProjectCollectionTask {

//取昨天1点 到今天1点的 项目归集
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));
Long count = collectionManage.count(req);
if(count == 0L){


Ładowanie…
Anuluj
Zapisz