瀏覽代碼

V1.1.3 shiro

yumeng 4 年之前
父節點
當前提交
1f6fe1ef07

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

@@ -228,31 +228,6 @@ public class TestController {
     }
 
 
-    @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);