|
@@ -1362,12 +1362,12 @@ public class TestController {
|
|
|
}
|
|
|
List<CtopOauthToken> tokens = tokenService.getByProjectId(458L); //淘特项目
|
|
|
for (CtopOauthToken token : tokens) {
|
|
|
- Date startDate = DateUtils.getNowDate();
|
|
|
+ Date startDate = DateUtils.addDay(DateUtils.getNowDate(), -1);
|
|
|
if(startDate.after(token.getAccessTokenExpiresIn())){ //过期跳过
|
|
|
continue;
|
|
|
}
|
|
|
- Date enDate = DateUtils.addDay(startDate, 30);
|
|
|
- List<AiKuaishouUnitLevelOperationRecord> planIdsAndUnitIds = kuaishouUnitLevelOperationRecordMapper.selectAllByAccountIdAndDate(token.getAccountId(), startDate, enDate);
|
|
|
+ Date enDate = DateUtils.addDay(startDate, -30);
|
|
|
+ List<AiKuaishouUnitLevelOperationRecord> planIdsAndUnitIds = kuaishouUnitLevelOperationRecordMapper.selectAllByAccountIdAndDate(token.getAccountId(), enDate, startDate);
|
|
|
if(Check.isNull(planIdsAndUnitIds)){
|
|
|
continue;
|
|
|
}
|