|
|
@@ -36,21 +36,29 @@ public class BytedanceCdpProjectJob {
|
|
|
@XxlJob("getAll")
|
|
|
public void getAll() {
|
|
|
log.info("[getAll] 任务启动...");
|
|
|
- List<Long> ttList = cdpProjectService.getAllAdverIdList("tt");
|
|
|
+ List<Long> wxlist = cdpProjectService.queryAllAdverIdList("WECHAT_APP");
|
|
|
+ if (!Check.isNull(wxlist)) {
|
|
|
+ wxlist.forEach(id -> allwxService.submit(() -> cdpProjectService.getWxAppInfo(id)));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @XxlJob("errAppAgain")
|
|
|
+ public void errAppAgain() {
|
|
|
+ log.info("[errAppAgain] 任务启动...");
|
|
|
+ List<Long> ttList = cdpProjectService.queryAllAdverIdList("tt");
|
|
|
if (!Check.isNull(ttList)) {
|
|
|
if (cdpProjectService.delErrApps("tt"))
|
|
|
- log.info("[getAll] ---移除抖小失败记录");
|
|
|
+ log.info("[errAppAgain] ---移除抖小失败记录");
|
|
|
ttList.forEach(id -> allttService.submit(() -> cdpProjectService.getByteAppInfo(id)));
|
|
|
}
|
|
|
- List<Long> wxlist = cdpProjectService.getAllAdverIdList("wx");
|
|
|
+ List<Long> wxlist = cdpProjectService.queryAllAdverIdList("wx");
|
|
|
if (!Check.isNull(wxlist)) {
|
|
|
if (cdpProjectService.delErrApps("wx"))
|
|
|
- log.info("[getAll] ---移除微小失败记录");
|
|
|
+ log.info("[errAppAgain] ---移除微小失败记录");
|
|
|
wxlist.forEach(id -> allwxService.submit(() -> cdpProjectService.getWxAppInfo(id)));
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
@XxlJob("nowProjects")
|
|
|
public void nowProjects() {
|
|
|
log.info("[nowProjects] 任务启动...");
|