Kaynağa Gözat

修改代码

syh 4 yıl önce
ebeveyn
işleme
51b627a4c3

+ 15 - 7
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -55,7 +55,6 @@ public class SampleTest {
     private IByteDanceAdvertiserDataService advertiserDataService;
     @Autowired
     private IKuaiShouHistoryReportTaskService kuaiShouHistoryReportTaskService;
-
     @Autowired
     private ICtopOauthTokenService tokenService;
     @Autowired
@@ -78,10 +77,7 @@ public class SampleTest {
 
     @Test
     public void loadKuaishouCookie() {
-        reportDailyAccountMapper.loadAccountDailyReport(23212L, "D://report2//8206288_1.csv");
-
-
-       /* List<BindAccountLogin> list = bindAccountLoginService.getListByParams(CtopAdConstant.PLATFORM_TYPE_KUAISHOU_PY, 1);
+        List<BindAccountLogin> list = bindAccountLoginService.getListByParams(CtopAdConstant.PLATFORM_TYPE_KUAISHOU_PY, 1);
         if (list != null && !list.isEmpty()) {
             int i = 0;
             for (BindAccountLogin login : list) {
@@ -90,11 +86,10 @@ public class SampleTest {
                     i++;
                 }
             }
-        }*/
+        }
     }
 
     static ExecutorService executorService = null;
-    //线程计数器/bytedance/bytedanceMaterialReport
     static CountDownLatch countDownLatch = null;
 
     @Test
@@ -253,6 +248,19 @@ public class SampleTest {
         }
     }
 
+    @Test
+    public void loadKuaishouHourlyReportData(){
+        Date getDate = new Date();
+        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("HH");
+        String hour = simpleDateFormat.format(getDate);
+        if ("00".equals(hour)) {
+            getDate = DateUtils.addDay(getDate, -1);
+        }
+        //1:查询当日数据
+        List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
+        Date finalGetDate = getDate;
+        tokens.forEach(token -> kuaishouInterfaceService.getAdvertiserReportHourly(token, finalGetDate, finalGetDate));
+    }
     @Autowired
     private IKuaishouInterfaceService kuaishouInterfaceService;
 

+ 0 - 6
module-job-bytedance/pom.xml

@@ -231,11 +231,5 @@
                 <activatedProperties>prod</activatedProperties>
             </properties>
         </profile>
-        <profile>
-            <id>jiaoyang</id>
-            <properties>
-                <activatedProperties>jiaoyang</activatedProperties>
-            </properties>
-        </profile>
     </profiles>
 </project>

+ 0 - 1
module-oa/src/main/java/cn/com/ctop/oa/modules/controller/WechatNoListController.java

@@ -265,7 +265,6 @@ public class WechatNoListController {
     /**
      * 考勤异常记录 导出数据
      *
-     * @param requestBody
      * @param response
      */
     @GetMapping("/excel")