Bladeren bron

删除重复方法

syh 4 jaren geleden
bovenliggende
commit
8e06a2341c

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

@@ -227,32 +227,6 @@ public class TestController {
         dailyAgentService.getAgentReportByPage(startDate, endDate);
     }
 
-
-    @GetMapping(value = "/getData")
-    public void getData() {
-        //1:查询当日数据
-        List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
-        Date endDate = new Date();
-        for (int i = 0; i < 8; i++) {
-            Date getStartDate = DateUtils.addDay(endDate, -i);
-            for (CtopOauthToken token : tokens) {
-                executorService.submit(new Runnable() {
-                    @Override
-                    public void run() {
-                        kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getStartDate, getStartDate);
-                        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
-                        String format = simpleDateFormat.format(getStartDate);
-                        kuaiShouReportDailyMaterialService.getMaterialReportByAccountIdAndStatDate(token.getAccountId(), token.getAccessToken(), format, format, 1);
-
-                    }
-                });
-            }
-        }
-
-
-    }
-
-
     @GetMapping(value = "/dailyReport")
     public void dailyReport() {
         List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_KUAISHOU);