瀏覽代碼

定时任务启用

zxl 11 月之前
父節點
當前提交
3b96d84e6b

+ 1 - 1
src/main/java/com/uas/eis/service/Impl/RequestSTKServiceImpl.java

@@ -316,7 +316,7 @@ public class RequestSTKServiceImpl implements RequestSTKService {
         String appkey = "9a1ae28bc9104deb86f74575acc1c2d6";
 
         //接口代码
-        String apiCode = "18c60d85eb0646a080341b64310109f1";
+        String apiCode = "8d0109bc472f45cd843d28534d946894";
 
         //每一条数据在这里构造,根据实际情况修改
         JSONObject request=new JSONObject(4);

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

@@ -197,7 +197,7 @@ public class STKTask {
 
 
     //现金流项目
-    //@Scheduled(cron = "0 10 19 * * ?")
+    @Scheduled(cron = "0 00 02 * * ?")
     public void queryCashFlowItems(){
         //StkCommonDto dto = new StkCommonDto();
         QueryCashFlowItemsDto dtoParam = new QueryCashFlowItemsDto();
@@ -245,7 +245,7 @@ public class STKTask {
 
 
     //获取会计科目
-    //@Scheduled(cron = "0 15 19 * * ?")
+    @Scheduled(cron = "0 00 03 * * ?")
     public void queryAccountantProject() {
         QueryAccountantProjectDto dto = new QueryAccountantProjectDto();
         Integer page = 1;