From 69e40de6803b6f7f78fb0f39268da0c716ab9845 Mon Sep 17 00:00:00 2001 From: 15856 <15856818120@163.com> Date: Wed, 4 Dec 2024 10:09:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E5=8A=A1=E7=9A=84=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java index 46b8fb3..45cdae6 100644 --- a/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java +++ b/sgzb-modules/sgzb-material/src/main/java/com/bonus/sgzb/app/service/impl/LeaseOutDetailsServiceImpl.java @@ -177,7 +177,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { * @return 结果 */ @Override - @Transactional(rollbackFor = Exception.class) + @Transactional() public AjaxResult submitOut(LeaseOutDetails record) { int res = 0; try { @@ -223,7 +223,7 @@ public class LeaseOutDetailsServiceImpl implements LeaseOutDetailsService { } } catch (Exception e) { log.error("出库失败", e.getMessage()); - return AjaxResult.error("出库失败"); + throw new RuntimeException("出库失败,修改任务状态失败"); } return AjaxResult.success("出库成功"); }