From 6ae97f32dbb086f096bf026a97471fbbc5ea3f1e Mon Sep 17 00:00:00 2001 From: jianjun Date: Wed, 10 Jun 2020 13:09:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E6=9B=B4=E6=94=B9=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=86=8D=E5=90=8C=E6=AD=A5=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=B0=E6=96=87=E7=AB=A0=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/epmet/controller/ArticleController.java | 2 +- .../java/com/epmet/service/ArticleService.java | 2 +- .../epmet/service/impl/ArticleServiceImpl.java | 16 +++++++++------- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/controller/ArticleController.java b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/controller/ArticleController.java index fc6e316885..9ef48b062e 100644 --- a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/controller/ArticleController.java +++ b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/controller/ArticleController.java @@ -231,7 +231,7 @@ public class ArticleController { log.error("scanContent draftId:{} return result null", draftId); } if (syncScanResult.isAllPass()) { - articleService.scanAllPassPublishArticle(tokenDto, draftId); + articleService.scanAllPassPublishArticle(tokenDto, draftId, syncScanResult); } else { articleService.updateAuditStatusFailById(draftId, syncScanResult); } diff --git a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/ArticleService.java b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/ArticleService.java index d9dfea5dff..be3e9ef287 100644 --- a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/ArticleService.java +++ b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/ArticleService.java @@ -176,7 +176,7 @@ public interface ArticleService extends BaseService { */ SyncScanResult scanContent(TokenDto tokenDto, String draftId); - void scanAllPassPublishArticle(TokenDto tokenDto, String draftId); + void scanAllPassPublishArticle(TokenDto tokenDto, String draftId, SyncScanResult syncScanResult); /** * desc:修改审核状态为失败 diff --git a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java index e1b2be9bcf..293621d66d 100644 --- a/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java +++ b/epmet-module/gov-voice/gov-voice-server/src/main/java/com/epmet/service/impl/ArticleServiceImpl.java @@ -61,6 +61,7 @@ import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; @@ -850,7 +851,7 @@ public class ArticleServiceImpl extends BaseServiceImpl NumConstant.ZERO){ draftContents.forEach(content -> { - content.setAuditStatus(ModuleConstant.AUDIT_STATUS_PASS); + //content.setAuditStatus(ModuleConstant.AUDIT_STATUS_PASS); content.setOrderNum(content.getOrderNum()); ArticleContentEntity contentToInsert = ConvertUtils.sourceToTarget(content,ArticleContentEntity.class); @@ -858,7 +859,7 @@ public class ArticleServiceImpl extends BaseServiceImpl NumConstant.ZERO){ @@ -869,14 +870,14 @@ public class ArticleServiceImpl extends BaseServiceImpl updateGridTagCacheDTOS = this.updateGridTag(tokenDto, draftId, updateCustomerTagCacheDTO);