|
@@ -2,7 +2,6 @@ package org.jeecg;
|
|
|
|
|
|
import cn.com.ctop.common.module.entity.BindAccountLogin;
|
|
import cn.com.ctop.common.module.entity.BindAccountLogin;
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
-import cn.com.ctop.common.module.entity.UserAllocation;
|
|
|
|
import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
@@ -48,12 +47,14 @@ public class SampleTest {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void testOceanEngineJob() {
|
|
public void testOceanEngineJob() {
|
|
- List<UserAllocation>tokens = userAllocationService.getByParams(107L,null,null);
|
|
|
|
- Date startDate = DateUtils.getDate();
|
|
|
|
- tokens.forEach(token -> {
|
|
|
|
- CtopOauthToken getToken = oauthTokenService.getTokenByAccountId(token.getAccountId());
|
|
|
|
- reportService.getAdvertiserReport(getToken,startDate,startDate,CtopAdConstant.BYTEDANCE_REPORT_TYPE_HOURLY);
|
|
|
|
- });
|
|
|
|
|
|
+ CtopOauthToken token = oauthTokenService.getTokenByAccountId(1657505911879694L);
|
|
|
|
+ CtopOauthToken token1 = oauthTokenService.getTokenByAccountId(1666111623537678L);
|
|
|
|
+ for(int i=20;i<80;i++){
|
|
|
|
+ Date startDate = DateUtils.addDay(new Date(),-i);
|
|
|
|
+ System.out.println(DateUtils.formatDate(startDate));
|
|
|
|
+ reportService.getAdvertiserReport(token,startDate,startDate,CtopAdConstant.KUAISHOU_LOAD_JOB_TYPE_DAILY);
|
|
|
|
+ reportService.getAdvertiserReport(token1,startDate,startDate,CtopAdConstant.KUAISHOU_LOAD_JOB_TYPE_DAILY);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|