@@ -1052,7 +1052,7 @@ public class XxlJobService {
}
List<Content> contentList;
// 每天晚上随机全量同步
- boolean findAll = hour > 18;
+ boolean findAll = hour > 18 || "all".equals(param);
if (findAll) {
contentList = aigcWaitingPublishContentService.getAllContent(account.getPlanId(), account.getAccountId(), null);
} else {
@@ -123,8 +123,8 @@ public class XxlJobController {
@GetMapping("/syncGzhWaitingPublishContent")
- public void syncGzhWaitingPublishContent() {
- service.syncGzhWaitingPublishContent(null);
+ public void syncGzhWaitingPublishContent(String syncAll) {
+ service.syncGzhWaitingPublishContent(syncAll);
@GetMapping("/syncGzhWaitingPublishContentBatch")