From 118ee2403373e9c158859bf8cccbbeb8a1168e48 Mon Sep 17 00:00:00 2001 From: o2lee Date: Thu, 15 Oct 2020 16:45:36 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=86=85=E5=AE=B9=E7=AE=A1=E7=90=86]=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=9C=A8=E6=9F=90=E4=BA=9B=E7=89=B9=E6=AE=8A=E6=83=85?= =?UTF-8?q?=E5=86=B5=E4=B8=8BCMS=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E6=AD=BB=E9=94=81=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=9D=83=E9=99=90=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../control/service/CmsBatchOperationPersistService.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/CmsBatchOperationPersistService.java b/o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/CmsBatchOperationPersistService.java index 6507f116c6..6150e703a2 100644 --- a/o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/CmsBatchOperationPersistService.java +++ b/o2server/x_cms_assemble_control/src/main/java/com/x/cms/assemble/control/service/CmsBatchOperationPersistService.java @@ -46,11 +46,11 @@ public class CmsBatchOperationPersistService { emc.beginTransaction( CmsBatchOperation.class ); emc.persist( cmsBatchOperation, CheckPersistType.all ); emc.commit(); - //将批量操作信息压入队列 - ThisApplication.queueBatchOperation.send( cmsBatchOperation ); } catch ( Exception e ) { throw e; - } + } + //将批量操作信息压入队列 + ThisApplication.queueBatchOperation.send( cmsBatchOperation ); return cmsBatchOperation; } @@ -74,8 +74,7 @@ public class CmsBatchOperationPersistService { cmsBatchOperation.setErrorCount( 0 ); cmsBatchOperation.setIsRunning( false ); cmsBatchOperation.setOldInfo( oldInfo ); - addOperation( cmsBatchOperation ); - return cmsBatchOperation; + return addOperation( cmsBatchOperation ) ; } /** -- GitLab