|
@@ -5,8 +5,8 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.StatusEnum;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.aigc.PushTypeEnum;
|
|
|
+import com.tzld.longarticle.recommend.server.common.enums.cgi.PQVideoAuditResultEnum;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.recommend.ArticleDeleteStatusEnum;
|
|
|
-import com.tzld.longarticle.recommend.server.common.enums.cgi.PQVideoAuditResultENum;
|
|
|
import com.tzld.longarticle.recommend.server.common.enums.recommend.FeishuRobotIdEnum;
|
|
|
import com.tzld.longarticle.recommend.server.mapper.aigc.AigcBaseMapper;
|
|
|
import com.tzld.longarticle.recommend.server.model.cgi.PQVideoAuditResult;
|
|
@@ -15,7 +15,6 @@ import com.tzld.longarticle.recommend.server.model.entity.aigc.PublishAccount;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.crawler.Article;
|
|
|
import com.tzld.longarticle.recommend.server.model.entity.longArticle.*;
|
|
|
import com.tzld.longarticle.recommend.server.model.param.ArticleDangerFindDeleteParam;
|
|
|
-import com.tzld.longarticle.recommend.server.model.param.ArticleVideoAuditResultParam;
|
|
|
import com.tzld.longarticle.recommend.server.model.param.PublishContentParam;
|
|
|
import com.tzld.longarticle.recommend.server.remote.WxAccessTokenRemoteService;
|
|
|
import com.tzld.longarticle.recommend.server.remote.WxArticleDeleteService;
|
|
@@ -73,7 +72,7 @@ public class ArticleAuditService {
|
|
|
|
|
|
@XxlJob("articleVideoAudit")
|
|
|
public ReturnT<String> articleVideoAudit(String param) {
|
|
|
- long publishTime = DateUtils.getTodayStart();
|
|
|
+ long publishTime = DateUtils.getTodayStart() / 1000;
|
|
|
if (StringUtils.hasText(param)) {
|
|
|
publishTime = DateUtils.getStartOfDay(param, "yyyyMMdd");
|
|
|
}
|
|
@@ -136,14 +135,14 @@ public class ArticleAuditService {
|
|
|
|
|
|
|
|
|
public void saveVideoAuditResult(LongArticleVideoAudit longArticleVideoAudit, Integer auditResult) {
|
|
|
- if (Objects.equals(auditResult, PQVideoAuditResultENum.PASS.getStatus())) {
|
|
|
+ if (Objects.equals(auditResult, PQVideoAuditResultEnum.PASS.getStatus())) {
|
|
|
// 审核通过,更新文章状态
|
|
|
- longArticleVideoAudit.setStatus(PQVideoAuditResultENum.PASS.getStatus());
|
|
|
+ longArticleVideoAudit.setStatus(PQVideoAuditResultEnum.PASS.getStatus());
|
|
|
longArticleVideoAudit.setFinishTimestamp(System.currentTimeMillis());
|
|
|
longArticleVideoAuditRepository.save(longArticleVideoAudit);
|
|
|
- } else if (Objects.equals(auditResult, PQVideoAuditResultENum.REJECT.getStatus())) {
|
|
|
+ } else if (Objects.equals(auditResult, PQVideoAuditResultEnum.REJECT.getStatus())) {
|
|
|
// 审核不通过,删除文章
|
|
|
- longArticleVideoAudit.setStatus(PQVideoAuditResultENum.REJECT.getStatus());
|
|
|
+ longArticleVideoAudit.setStatus(PQVideoAuditResultEnum.REJECT.getStatus());
|
|
|
longArticleVideoAudit.setFinishTimestamp(System.currentTimeMillis());
|
|
|
longArticleVideoAuditRepository.save(longArticleVideoAudit);
|
|
|
// 构建删除文章记录 并保存
|
|
@@ -177,7 +176,7 @@ public class ArticleAuditService {
|
|
|
Map<String, String> publishPushIdMap = pushContentRelList.stream()
|
|
|
.collect(Collectors.toMap(PublishGzhPushContentRelDTO::getPublishContentId,
|
|
|
PublishGzhPushContentRelDTO::getPushId,
|
|
|
- (o1, o2) -> o2));
|
|
|
+ (o1, o2) -> o2));
|
|
|
List<PublishGzhPushDTO> pushList = aigcBaseMapper.getPushByPushIdIn(pushIds);
|
|
|
Map<String, PublishGzhPushDTO> pushDTOMap = pushList.stream()
|
|
|
.collect(Collectors.toMap(PublishGzhPushDTO::getPushId, Function.identity()));
|