|
@@ -26,6 +26,7 @@ import com.tzld.longarticle.recommend.server.mapper.longArticle.LongArticleBaseM
|
|
|
import com.tzld.longarticle.recommend.server.model.cgi.AlgFaceRecognizeResult;
|
|
|
import com.tzld.longarticle.recommend.server.model.cgi.PQVideoAuditResult;
|
|
|
import com.tzld.longarticle.recommend.server.model.dto.*;
|
|
|
+import com.tzld.longarticle.recommend.server.model.dto.aigc.PublishAccountRemarkDTO;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishAccount;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishContent;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.crawler.Article;
|
|
@@ -814,6 +815,9 @@ public class ArticleAuditService {
|
|
|
List<PublishAccount> publishAccountList = publishAccountRepository.getByIdIn(publishAccountIds);
|
|
|
Map<String, PublishAccount> publishAccountMap = publishAccountList.stream()
|
|
|
.collect(Collectors.toMap(PublishAccount::getId, Function.identity()));
|
|
|
+ List<PublishAccountRemarkDTO> publishAccountRemarkDTOList = publishContentMapper.getPublishAccountRemarkList(publishAccountIds);
|
|
|
+ Map<String, List<PublishAccountRemarkDTO>> publishAccountRemarkMap = publishAccountRemarkDTOList.stream()
|
|
|
+ .collect(Collectors.groupingBy(PublishAccountRemarkDTO::getPublishAccountId));
|
|
|
List<PublishGzhPushContentRelDTO> groupPushRelList = publishContentMapper.getGroupPushRelByPushIdIn(pushIds);
|
|
|
List<String> publishContentIds = groupPushRelList.stream().map(PublishGzhPushContentRelDTO::getPublishContentId)
|
|
|
.collect(Collectors.toList());
|
|
@@ -829,8 +833,18 @@ public class ArticleAuditService {
|
|
|
if (notDeleteArticleAccountGhIds.contains(publishAccount.getGhId())) {
|
|
|
continue;
|
|
|
}
|
|
|
- if (StringUtils.hasText(publishAccount.getRemark()) && publishAccount.getRemark().contains("服务号")) {
|
|
|
- continue;
|
|
|
+ List<PublishAccountRemarkDTO> remarkList = publishAccountRemarkMap.get(publishAccountId);
|
|
|
+ if (CollectionUtils.isNotEmpty(remarkList)) {
|
|
|
+ boolean isFwh = false;
|
|
|
+ for (PublishAccountRemarkDTO remark : remarkList) {
|
|
|
+ if (remark.getRemark().contains("服务号")) {
|
|
|
+ isFwh = true;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (isFwh) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
}
|
|
|
List<PublishGzhPushContentRelDTO> relList = groupPushRelMap.get(push.getPushId()).stream()
|
|
|
.sorted(Comparator.comparing(PublishGzhPushContentRelDTO::getId)).collect(Collectors.toList());
|