Index: ssts-webservice/src/main/java/com/forgon/disinfectsystem/webservice/service/ServiceManagerImpl.java =================================================================== diff -u -r23593 -r23735 --- ssts-webservice/src/main/java/com/forgon/disinfectsystem/webservice/service/ServiceManagerImpl.java (.../ServiceManagerImpl.java) (revision 23593) +++ ssts-webservice/src/main/java/com/forgon/disinfectsystem/webservice/service/ServiceManagerImpl.java (.../ServiceManagerImpl.java) (revision 23735) @@ -35,7 +35,6 @@ import org.springframework.security.authentication.encoding.PasswordEncoder; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; -import org.springframework.transaction.interceptor.TransactionAspectSupport; import sun.misc.BASE64Decoder; @@ -1391,8 +1390,7 @@ // .key("success").value(true) // .endObject().toString(); } catch (Exception ex){ - TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); - return JSONUtil.buildErrorMsgJsonResult(ex.getMessage()); + throw new RuntimeException(ex.getMessage()); } } @@ -1401,8 +1399,7 @@ invoiceManager.submitInvoice(params); return JSONUtil.buildJsonObject(true).toString(); } catch (Exception ex){ - TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); - return JSONUtil.buildErrorMsgJsonResult(ex.getMessage()); + throw new RuntimeException(ex.getMessage()); } } public String getAllWareHouse(JSONObject params){