|
@@ -27,8 +27,8 @@ public class KuaishouSuZaoLoadJob {
|
|
|
List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
|
|
|
executorService = Executors.newFixedThreadPool(8);
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
- String endDate = DateUtils.getAnotherDay("yyyy-mm-dd", nowDate, 1);
|
|
|
- String startDate = DateUtils.getAnotherDay("yyyy-mm-dd", nowDate, -1);
|
|
|
+ String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, 1);
|
|
|
+ String startDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
tokens.forEach(token -> executorService.submit(() -> kuaishouInterfaceService.getSuZaoList(token.getAccessToken(), token.getAccountId(), 1, startDate, endDate)));
|
|
|
XxlJobLogger.log("快手素造数据同步完成");
|
|
|
return ReturnT.SUCCESS;
|