|
@@ -110,7 +110,7 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
dailyReportTask.setTaskName(taskName);
|
|
dailyReportTask.setTaskName(taskName);
|
|
dailyReportTaskService.save(dailyReportTask);
|
|
dailyReportTaskService.save(dailyReportTask);
|
|
} else {
|
|
} else {
|
|
- log.error("快手历史报表请求失败,accountId:{},返回数据:{}", accountId, resultJson);
|
|
|
|
|
|
+ log.error("快手分天报表请求失败,accountId:{},返回数据:{}", accountId, resultJson);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -237,7 +237,7 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
} else if (task.getViewType() == 5) {
|
|
} else if (task.getViewType() == 5) {
|
|
kuaishouReportDailyMaterialMapper.loadMaterialDailyReport(task.getAccountId(), localPath);
|
|
kuaishouReportDailyMaterialMapper.loadMaterialDailyReport(task.getAccountId(), localPath);
|
|
|
|
|
|
- /* Thread thread = new Thread() {
|
|
|
|
|
|
+ Thread thread = new Thread() {
|
|
@Override
|
|
@Override
|
|
public void run() {
|
|
public void run() {
|
|
try {
|
|
try {
|
|
@@ -250,7 +250,7 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
}
|
|
}
|
|
|
|
|
|
};
|
|
};
|
|
- thread.start();*/
|
|
|
|
|
|
+ thread.start();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
@@ -281,17 +281,16 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
|
|
|
|
private void getDailyTypeList() {
|
|
private void getDailyTypeList() {
|
|
dailyTypeList = new ArrayList<>();
|
|
dailyTypeList = new ArrayList<>();
|
|
- dailyTypeList.add(5);
|
|
|
|
-
|
|
|
|
dailyTypeList.add(2);
|
|
dailyTypeList.add(2);
|
|
dailyTypeList.add(3);
|
|
dailyTypeList.add(3);
|
|
dailyTypeList.add(4);
|
|
dailyTypeList.add(4);
|
|
-
|
|
|
|
|
|
+ dailyTypeList.add(5);
|
|
dailyTypeList.add(10);
|
|
dailyTypeList.add(10);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- static ExecutorService executorService = Executors.newFixedThreadPool(50);
|
|
|
|
|
|
+
|
|
|
|
+ static ExecutorService executorService = Executors.newFixedThreadPool(30);
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private ICtopOauthTokenService oauthTokenService;
|
|
private ICtopOauthTokenService oauthTokenService;
|
|
@@ -299,7 +298,7 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
@Override
|
|
@Override
|
|
public void getMd5(String statDate, Long accountId) {
|
|
public void getMd5(String statDate, Long accountId) {
|
|
|
|
|
|
- /* executorService.submit(new Runnable() {
|
|
|
|
|
|
+ executorService.submit(new Runnable() {
|
|
@Override
|
|
@Override
|
|
public void run() {
|
|
public void run() {
|
|
List<KuaiShouReportDailyMaterialVo> photoList = kuaishouReportDailyMaterialMapper.getPhotoList(accountId, statDate);
|
|
List<KuaiShouReportDailyMaterialVo> photoList = kuaishouReportDailyMaterialMapper.getPhotoList(accountId, statDate);
|
|
@@ -324,9 +323,9 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- });*/
|
|
|
|
|
|
+ });
|
|
|
|
|
|
- QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
|
+ /* QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
|
|
queryWrapper.eq("media_id", 2);
|
|
queryWrapper.eq("media_id", 2);
|
|
List<CtopOauthToken> list = oauthTokenService.list(queryWrapper);
|
|
List<CtopOauthToken> list = oauthTokenService.list(queryWrapper);
|
|
for (CtopOauthToken token : list) {
|
|
for (CtopOauthToken token : list) {
|
|
@@ -357,7 +356,7 @@ public class KuaiShouHistoryReportTaskServiceImpl extends ServiceImpl<KuaiShouHi
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|