|
|
@@ -876,13 +876,13 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
* 3. 输出顺序按 rov DESC,相同 rov 按 total_rov DESC 兜底
|
|
|
*/
|
|
|
private List<VideoContentItemVO> fetchPriorSceneCandidates(VideoContentListParam param, ContentPlatformAccount user, int limit) {
|
|
|
- String dt = demandVideoMapperExt.getMaxDt();
|
|
|
+ String channelName = resolveChannelName(param);
|
|
|
+ String dt = demandVideoMapperExt.getMaxDt(channelName);
|
|
|
if (!StringUtils.hasText(dt)) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
String crowdSegment = user.getChannel();
|
|
|
String ghName = StringUtils.hasText(param.getGhName()) ? param.getGhName() : null;
|
|
|
- String channelName = resolveChannelName(param);
|
|
|
|
|
|
String category = StringUtils.hasText(param.getCategory()) ? param.getCategory() : null;
|
|
|
// priorScene 池新识别:demand_strategy='人群需求' AND match_method='场景已看视频'(0519+ 起,旧 demand_strategy='人群需求-场景' 已迁走)
|
|
|
@@ -931,13 +931,13 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
* 结果按 limit 截断。
|
|
|
*/
|
|
|
private List<VideoContentItemVO> fetchPriorCandidates(VideoContentListParam param, ContentPlatformAccount user, int limit) {
|
|
|
- String dt = demandVideoMapperExt.getMaxDt();
|
|
|
+ String channelName = resolveChannelName(param);
|
|
|
+ String dt = demandVideoMapperExt.getMaxDt(channelName);
|
|
|
if (!StringUtils.hasText(dt)) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
String crowdSegment = user.getChannel();
|
|
|
String ghName = StringUtils.hasText(param.getGhName()) ? param.getGhName() : null;
|
|
|
- String channelName = resolveChannelName(param);
|
|
|
int fetchLimit = Math.max(limit * 3, DEMAND_CANDIDATE_LIMIT);
|
|
|
|
|
|
String category = StringUtils.hasText(param.getCategory()) ? param.getCategory() : null;
|
|
|
@@ -1013,13 +1013,13 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
* 跨组用 video_id + 归一化标题去重,截到 limit。
|
|
|
*/
|
|
|
private List<VideoContentItemVO> fetchPosteriorCandidates(VideoContentListParam param, ContentPlatformAccount user, int limit) {
|
|
|
- String dt = demandVideoMapperExt.getMaxDt();
|
|
|
+ String channelName = resolveChannelName(param);
|
|
|
+ String dt = demandVideoMapperExt.getMaxDt(channelName);
|
|
|
if (!StringUtils.hasText(dt)) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
String crowdSegment = user.getChannel();
|
|
|
String ghName = StringUtils.hasText(param.getGhName()) ? param.getGhName() : null;
|
|
|
- String channelName = resolveChannelName(param);
|
|
|
int fetchLimit = Math.max(limit * 3, DEMAND_CANDIDATE_LIMIT);
|
|
|
|
|
|
String category = StringUtils.hasText(param.getCategory()) ? param.getCategory() : null;
|
|
|
@@ -1851,7 +1851,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
ContentPlatformAccount loginAccount = LoginUserContext.getUser();
|
|
|
String crowdSegment = loginAccount.getChannel();
|
|
|
int offset = (param.getPageNum() - 1) * param.getPageSize();
|
|
|
- String dt = demandVideoMapperExt.getMaxDt();
|
|
|
+ String dt = demandVideoMapperExt.getMaxDt(null);
|
|
|
if (!StringUtils.hasText(dt)) {
|
|
|
result.setTotalSize(0);
|
|
|
result.setObjs(new ArrayList<>());
|