|
|
@@ -9,6 +9,7 @@ import com.google.common.collect.Lists;
|
|
|
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
|
|
import com.tzld.longarticle.recommend.server.common.CommonThreadPoolExecutor;
|
|
|
import com.tzld.longarticle.recommend.server.common.HttpPoolFactory;
|
|
|
+import com.tzld.longarticle.recommend.server.common.constant.RedisConstants;
|
|
|
import com.tzld.longarticle.recommend.server.common.constant.SceneConstants;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.FieshuTableColumnDataTypeEnum;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.aigc.ChannelEnum;
|
|
|
@@ -1070,8 +1071,8 @@ public class XxlJobService {
|
|
|
, cnt > 0 ? newAuditIds : null);
|
|
|
}
|
|
|
savePublishContentCache(contentList, account.getPlanId(), account.getAccountId(), findAll, now);
|
|
|
- String redisKey = "ContentPreFilterJob:" + DateUtils.getCurrentDateStr("yyyyMMdd") + ":"
|
|
|
- + account.getPlanId() + "-" + account.getAccountId();
|
|
|
+ String redisKey = RedisConstants.buildContentPreFilterJobKey(
|
|
|
+ DateUtils.getCurrentDateStr("yyyyMMdd"), account.getPlanId(), account.getAccountId());
|
|
|
doPreFilter(account, redisKey, 0, null);
|
|
|
} finally {
|
|
|
cdl.countDown();
|
|
|
@@ -1107,8 +1108,8 @@ public class XxlJobService {
|
|
|
List<Content> contentList;
|
|
|
contentList = aigcWaitingPublishContentService.getAllContent(account.getPlanId(), account.getAccountId(), null);
|
|
|
savePublishContentCache(contentList, account.getPlanId(), account.getAccountId(), true, now);
|
|
|
- String redisKey = "ContentPreFilterJob:" + DateUtils.getCurrentDateStr("yyyyMMdd") + ":"
|
|
|
- + account.getPlanId() + "-" + account.getAccountId();
|
|
|
+ String redisKey = RedisConstants.buildContentPreFilterJobKey(
|
|
|
+ DateUtils.getCurrentDateStr("yyyyMMdd"), account.getPlanId(), account.getAccountId());
|
|
|
doPreFilter(account, redisKey, 0, null);
|
|
|
} finally {
|
|
|
cdl.countDown();
|
|
|
@@ -1213,7 +1214,7 @@ public class XxlJobService {
|
|
|
CountDownLatch cdl = new CountDownLatch(planAccountList.size());
|
|
|
String dateStr = DateUtils.getCurrentDateStr("yyyyMMdd");
|
|
|
for (PublishPlanAccountDTO item : planAccountList) {
|
|
|
- String redisKey = "ContentPreFilterJob:" + dateStr + ":" + item.getPlanId() + "-" + item.getAccountId();
|
|
|
+ String redisKey = RedisConstants.buildContentPreFilterJobKey(dateStr, item.getPlanId(), item.getAccountId());
|
|
|
if (!(calculateRemainder(item.getAccountId(), serverSize) == index)) {
|
|
|
continue;
|
|
|
}
|