Browse Source

[深爱]科目基础资料对接测试

zxl 1 year ago
parent
commit
f08f051292
1 changed files with 8 additions and 8 deletions
  1. 8 8
      src/main/java/com/uas/eis/task/STKTask.java

+ 8 - 8
src/main/java/com/uas/eis/task/STKTask.java

@@ -87,17 +87,17 @@ public class STKTask {
     }*/
 
     //客商获取
-    @Scheduled(cron = "0 39 18 * * ?")
+    //@Scheduled(cron = "0 39 18 * * ?")
     public void queryCustVendQuartz(){
         log.info("开始获取深投控客商状态信息=========start=============");
         Date date = new Date();
 
         QueryTravellingMerchantDto dto = new QueryTravellingMerchantDto();
-        dto.setPage(118);
+        dto.setPage(1);
         dto.setSize(1000);
 
         //第一次删除STK_CUSTVEND的数据
-        //stkService.delete();
+        stkService.delete();
         //是否跳出循环
         Boolean isBreak = true;
         //是否发生异常
@@ -139,7 +139,7 @@ public class STKTask {
     }
 
     //客商获取(当天)
-    //@Scheduled(cron = "0 41 18 * * ?")
+    @Scheduled(cron = "0 50 23 * * ?")
     public void queryCustVendDayQuartz(){
         log.info("开始获取深投控客商状态信息=========start=============");
         Date date = new Date();
@@ -195,7 +195,7 @@ public class STKTask {
 
 
     //现金流项目
-    //@Scheduled(cron = "0 35 23 * * ?")
+    @Scheduled(cron = "0 10 19 * * ?")
     public void queryCashFlowItems(){
         //StkCommonDto dto = new StkCommonDto();
         QueryCashFlowItemsDto dtoParam = new QueryCashFlowItemsDto();
@@ -223,7 +223,7 @@ public class STKTask {
                     continue;
                 }
                 //获取到现金流项目,数据入库
-                stkService.getCashFlowItems(cashFlowItemsVo, true);
+                stkService.getCashFlowItems(cashFlowItemsVo, false);
                 exception = false;
             }catch (Exception e){
                 log.info("获取现金流异常:{}",e.getMessage());
@@ -243,7 +243,7 @@ public class STKTask {
 
 
     //获取会计科目
-    //@Scheduled(cron = "0 05 01 * * ?")
+    @Scheduled(cron = "0 15 19 * * ?")
     public void queryAccountantProject() {
         QueryAccountantProjectDto dto = new QueryAccountantProjectDto();
         Integer page = 1;
@@ -269,7 +269,7 @@ public class STKTask {
                     continue;
                 }
                 //获取到现金流项目,数据入库
-                stkService.getAccountantProject(accountantProjectVo, true);
+                stkService.getAccountantProject(accountantProjectVo, false);
                 exception = false;
             } catch (Exception e) {
                 log.info("获取现金流异常:{}", e.getMessage());