|
|
@@ -27,6 +27,7 @@ import com.tzld.piaoquan.api.service.VideoMultiService;
|
|
|
import com.tzld.piaoquan.api.service.contentplatform.ContentPlatformAccountService;
|
|
|
import com.tzld.piaoquan.api.service.contentplatform.ContentPlatformCooperateAccountService;
|
|
|
import com.tzld.piaoquan.api.service.contentplatform.ContentPlatformPlanService;
|
|
|
+import com.tzld.piaoquan.api.util.TitleNormalizer;
|
|
|
import com.tzld.piaoquan.growth.common.common.enums.GhTypeEnum;
|
|
|
import com.tzld.piaoquan.growth.common.common.enums.StrategyStatusEnum;
|
|
|
import com.tzld.piaoquan.growth.common.dao.mapper.ext.CgiReplyBucketDataMapperExt;
|
|
|
@@ -673,6 +674,9 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
return result;
|
|
|
}
|
|
|
List<ContentPlatformDemandVideo> rows = demandVideoMapperExt.selectForRecommendPaged(dt, crowdSegment, demandStrategy, offset, pageSize, excludeSelfTitle);
|
|
|
+ if (excludeSelfTitle) {
|
|
|
+ rows.removeIf(r -> TitleNormalizer.isSelfTitle(r.getTitle(), r.getDemandContentTitle()));
|
|
|
+ }
|
|
|
List<VideoContentItemVO> list = buildDemandVideoContentItemVOList(rows);
|
|
|
for (VideoContentItemVO v : list) {
|
|
|
v.setSource(source);
|
|
|
@@ -803,6 +807,9 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
if (row.getVideoId() == null) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if (excludeSelfTitle && TitleNormalizer.isSelfTitle(row.getTitle(), row.getDemandContentTitle())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
if (!distinct.containsKey(row.getVideoId())) {
|
|
|
distinct.put(row.getVideoId(), row);
|
|
|
if (distinct.size() >= limit) {
|