Browse Source

Merge remote-tracking branch 'origin/master'

jiequan.bi 4 years ago
parent
commit
cbbd0fc30e
1 changed files with 6 additions and 5 deletions
  1. 6 5
      jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

+ 6 - 5
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -127,13 +127,14 @@ public class SampleTest {
 
     @Test
     public void testLoadBytedanceData() {
-        List<UserAllocation> allocations = allocationService.getByParams(435L, null, 0);
+        List<UserAllocation> allocations = allocationService.getByParams(633L, null, 0);
         for (UserAllocation allocation : allocations) {
-            for (int i = 2; i < 10; i++) {
+//            for (int i = 2; i < 10; i++) {
                 CtopOauthToken token = oauthTokenService.getTokenByAccountId(allocation.getAccountId());
-                Date getDate = DateUtils.addDay(new Date(), -i);
-                reportService.getAdvertiserReport(token, getDate, getDate, CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
-            }
+                Date getDate = DateUtils.addDay(new Date(), 0);
+//                reportService.getAdvertiserReport(token, getDate, getDate, CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
+                reportService.getAdvertiserReport(token, getDate, getDate, CtopAdConstant.BYTEDANCE_REPORT_TYPE_HOURLY);
+//            }
         }
     }