Sfoglia il codice sorgente

修改智能投放账户配置逻辑

syh 4 anni fa
parent
commit
e685983195

+ 0 - 27
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -112,31 +112,6 @@ public class TestController {
     @Autowired
     private IBytedanceReportService bytedanceReportService;
 
-
-    @GetMapping("/loadMatData")
-    public Map<String, Object> getData(String startDate, String endDate, Long accountId) {
-        Map<String, Object> result = new HashMap<>();
-        CtopOauthToken token = tokenService.getTokenByAccountId(accountId);
-        Date start = DateUtils.parseDate(startDate, "yyyy-MM-dd");
-        int days = DateUtils.getdaysOfTwoDate(startDate, endDate) + 1;
-        for (int i = 0; i < days; i++) {
-            String getDate = DateUtils.formatDate(DateUtils.addDay(start, i));
-            // bytedanceReportService.bytedanceMaterialReport(token, getDate, getDate);
-
-            suzhaoService.submit(new Runnable() {
-                @Override
-                public void run() {
-                    bytedanceReportService.bytedanceMaterialReport(token, getDate, getDate);
-
-                }
-            });
-
-        }
-        ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
-        return result;
-    }
-
-
     @GetMapping("/testKuaishou")
     public String kuaishouCallback(@RequestParam("auth_code") String authCode, @RequestParam("state") String state) {
         try {
@@ -1355,8 +1330,6 @@ public class TestController {
         ResultMapUtils.setResultMap(result, StatusCode.COMMON_SUCCESS);
         return result;
     }
-    @Autowired
-    private IBytedanceReportService bytedanceReportService;
 
     @GetMapping("loadMatData")
     public Map<String,Object>getData(String startDate,String endDate,Long accountId){