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 6507f116c60901c55f39ef1aee43b14b66af1b26..6150e703a279dfabd6580b6142804ffa2a3047c0 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 ) ; } /**