Kaynağa Gözat

分定时任务的数量(信用怀化)

nahida 1 yıl önce
ebeveyn
işleme
91acf44470

+ 1 - 1
data-service/src/main/java/com/zksy/data/controller/TestController.java

@@ -4025,7 +4025,7 @@ public class TestController {
 //        xcrOtherInfo38Service.saveDataByUniCode("interface/v1/datawarehouse/list");
 //        xcrOtherInfo39Service.saveDataByUniCode("interface/v1/datawarehouse/list");
 //        xcrTrustworthyIncentive42Service.saveDataByUniCode("interface/v1/datawarehouse/list");
-        xcrDishonestyPunishment19Service.saveDataByUniCode("interface/v1/datawarehouse/list");
+//        xcrDishonestyPunishment19Service.saveDataByUniCode("interface/v1/datawarehouse/list");
         return "成功";
     }
     @GetMapping("/e")

+ 21 - 3
data-service/src/main/java/com/zksy/data/schedule/CollectDataSchedule.java

@@ -119,16 +119,31 @@ public class CollectDataSchedule {
         serviceMap.put("xcrAgriculturalSpecializedWebsiteServiceImpl","gateway/api/1/nznbwzhwdxxByUniscid");
         serviceMap.put("xcrAnSfcBranchinfoServiceImpl","gateway/api/1/getNznbfzjgxxByUniscid");
         serviceMap.put("xcrMajorMembersServiceImpl","gateway/api/1/zyryxxByUniscid");
+        serviceMap.put("xcrOtherInfo36ServiceImpl","interface/v1/datawarehouse/list");
+        serviceMap.put("xcrAdministrativeLicensingServiceImpl","interface/v1/doublePublic/findLicensingList");
+        serviceMap.put("xcrAdministrativePenaltyServiceImpl","interface/v1/doublePublic/findSanctionList");
+        serviceMap.put("xcrOtherInfo37ServiceImpl","interface/v1/datawarehouse/list");
+        serviceMap.put("xcrOtherInfo38ServiceImpl","interface/v1/datawarehouse/list");
+        serviceMap.put("xcrOtherInfo39ServiceImpl","interface/v1/datawarehouse/list");
+        serviceMap.put("xcrTrustworthyIncentive42ServiceImpl","interface/v1/datawarehouse/list");
+        serviceMap.put("xcrDishonestyPunishment19ServiceImpl","interface/v1/datawarehouse/list");
     }
 
     @Scheduled(cron = "0 0 1 1 * ?")
     public void getDataByMonth() {
-
+        List<String> serviceList = List.of(
+                "xcrOtherInfo38ServiceImpl",
+                "xcrOtherInfo39ServiceImpl"
+        );
+        commonHandler(serviceList);
     }
     @Scheduled(cron = "0 0 1 * * ?")
     public void getDataByDay1() {
         List<String> serviceList = List.of(
-                "xcrEnvironmentalPenaltyDecisionServiceImpl"
+                "xcrEnvironmentalPenaltyDecisionServiceImpl",
+                "xcrAdministrativeLicensingServiceImpl",
+                "xcrTrustworthyIncentive42ServiceImpl",
+                "xcrDishonestyPunishment19ServiceImpl"
         );
         commonHandler(serviceList);
     }
@@ -224,7 +239,10 @@ public class CollectDataSchedule {
                 "xcrAnnualReportExternalInvestmentServiceImpl",
                 "xcrRandomInspectionTaskServiceImpl",
                 "xcrSmallAndMicroEnterprisesServiceImpl",
-                "xcrWebsiteInfoServiceImpl"
+                "xcrWebsiteInfoServiceImpl",
+                "xcrOtherInfo36ServiceImpl",
+                "interface/v1/datawarehouse/list",
+                "xcrOtherInfo37ServiceImpl"
         );
         commonHandler(serviceList);
     }