Bladeren bron

添加销售报表数据导出功能

syh 4 jaren geleden
bovenliggende
commit
e4a7754028
1 gewijzigde bestanden met toevoegingen van 6 en 5 verwijderingen
  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);
+//            }
         }
     }