瀏覽代碼

数据拉取定时任务、逻辑补充

zhouyy 1 月之前
父節點
當前提交
fe97b3a3e7

+ 5 - 5
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/QRCodeController.java

@@ -66,11 +66,11 @@ public class QRCodeController {
                 msg.setError("二维码生成失败,请联系管理员");
                 return msg;
             }
-            filesToZip[index] = uploadPath+fileName;
+            filesToZip[index] = "/upload/"+fileName;
             index++;
         }
-
-        String zipFile = uploadPath+System.currentTimeMillis()+".zip";
+        String zipFileName = System.currentTimeMillis()+".zip";
+        String zipFile = uploadPath+zipFileName;
         try (FileOutputStream fos = new FileOutputStream(zipFile);
              ZipArchiveOutputStream zaos = new ZipArchiveOutputStream(fos)) {
 
@@ -98,7 +98,7 @@ public class QRCodeController {
             msg.setError("二维码压缩包生成失败,请联系管理员");
             return msg;
         }
-        msg.setData(zipFile);
+        msg.setData("/upload/"+zipFileName);
         return msg;
     }
 
@@ -122,7 +122,7 @@ public class QRCodeController {
             msg.setError("二维码生成失败,请联系管理员");
             return msg;
         }
-        msg.setData(uploadPath+fileName);
+        msg.setData("/upload/"+fileName);
         return msg;
     }
 

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/task/DataCollectTask.java

@@ -104,7 +104,7 @@ public class DataCollectTask {
 
 
 
-    @Scheduled(cron = "0 0 1 * * ?")
+    @Scheduled(cron = "0 52 10 * * ?")
     @Async
     public void sqlServerTask() {
         RestTemplate restTemplate = new RestTemplate();