|
@@ -5,6 +5,7 @@ import cn.hutool.http.HttpResponse;
|
|
|
import com.tzld.piaoquan.longarticle.common.enums.MatchResultStatusEnum;
|
|
|
import com.tzld.piaoquan.longarticle.common.enums.NewContentStatusEnum;
|
|
|
import com.tzld.piaoquan.longarticle.dao.mapper.longarticle.NewMatchVideoMapper;
|
|
|
+import com.tzld.piaoquan.longarticle.model.dto.AuditContentRequest;
|
|
|
import com.tzld.piaoquan.longarticle.model.po.longarticle.NewMatchVideo;
|
|
|
import com.tzld.piaoquan.longarticle.model.po.longarticle.NewMatchVideoExample;
|
|
|
import com.tzld.piaoquan.longarticle.model.vo.MatchContentItem;
|
|
@@ -12,6 +13,7 @@ import com.tzld.piaoquan.longarticle.model.vo.MatchContentStatusParam;
|
|
|
import com.tzld.piaoquan.longarticle.service.local.NewMatchVideoService;
|
|
|
import com.tzld.piaoquan.longarticle.service.local.impl.MatchVideoServiceImpl;
|
|
|
import com.tzld.piaoquan.longarticle.service.remote.AigcService;
|
|
|
+import com.tzld.piaoquan.longarticle.service.remote.MatchService;
|
|
|
import com.tzld.piaoquan.longarticle.utils.LarkRobotUtil;
|
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
@@ -38,6 +40,9 @@ public class NewMatchVideoJob {
|
|
|
@Autowired
|
|
|
private NewMatchVideoMapper newMatchVideoMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private MatchService matchService;
|
|
|
+
|
|
|
@XxlJob("matchContentJob")
|
|
|
public ReturnT<String> matchContentJob(String param) {
|
|
|
List<MatchContentItem> matchContentItemList = aigcService.getMatchContentItemList();
|
|
@@ -57,6 +62,10 @@ public class NewMatchVideoJob {
|
|
|
matchContentStatusParam.setProduceContentId(newMatchVideo.getContentId());
|
|
|
matchContentStatusParam.setStatus(MatchResultStatusEnum.SUCCESS.getStatusCode());
|
|
|
aigcService.updateMatchContentStatus(matchContentStatusParam);
|
|
|
+ AuditContentRequest auditContentRequest = new AuditContentRequest();
|
|
|
+ auditContentRequest.setContentId(newMatchVideo.getContentId());
|
|
|
+ auditContentRequest.setFlowPoolLevel(newMatchVideo.getFlowPoolLevel());
|
|
|
+ matchService.addAudit(auditContentRequest);
|
|
|
}
|
|
|
if (NewContentStatusEnum.isFail(newMatchVideo.getContentStatus())) {
|
|
|
MatchContentStatusParam matchContentStatusParam = new MatchContentStatusParam();
|