From 3780c5e65b05bf23020810798babc6d20311fa79 Mon Sep 17 00:00:00 2001
From: hjg <hjg@123.com>
Date: 星期五, 17 十一月 2023 09:53:23 +0800
Subject: [PATCH] 加强回滚限制

---
 JavaSource/com/mandi/fendan/service/impl/ErpService.java |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/JavaSource/com/mandi/fendan/service/impl/ErpService.java b/JavaSource/com/mandi/fendan/service/impl/ErpService.java
index 2394b3d..2be6e21 100644
--- a/JavaSource/com/mandi/fendan/service/impl/ErpService.java
+++ b/JavaSource/com/mandi/fendan/service/impl/ErpService.java
@@ -89,6 +89,9 @@
 	@Resource
 	private SqlSessionFactory sqlSessionFactory;
 
+	@Resource
+	private FdVehicleRemarkMapper fdVehicleRemarkMapper;
+
 	@Override
 	public ObjectResult<String> tzPrint(Login lg, String bssNo, String ipadd) {
 		ObjectResult<String> orr = new ObjectResult<String>();
@@ -796,7 +799,7 @@
 	}
 
 	@Override
-	@Transactional
+	@Transactional(rollbackFor = Exception.class)
 	public ObjectResult<Boolean> delFdsheet(Login lg, String bsNo) throws Exception{
 		ObjectResult<Boolean> or = new ObjectResult<Boolean>();
 		if (lg == null) {
@@ -981,7 +984,8 @@
 			}
 
 		}
-
+		// 鍒犻櫎杞﹁締鍒嗗崟鐨勫娉╮emark
+		fdVehicleRemarkMapper.deleteByBusinessNo(bsNo);
 		or.setCode(0);
 		or.setItem(true);
 		return or;
@@ -1624,6 +1628,7 @@
 				}
 			}
 		} catch (Exception e) {
+			log.error("閿�鍞笟鍔¤溅杈嗗嚭鍘傜▼搴�" + e.getMessage(),e);
 			throw new Exception(StringUtils.isEmpty(e.getMessage()) ? "閿�鍞笟鍔¤溅杈嗗嚭鍘傜▼搴忓嚭閿欙紒" : e.getMessage());
 		}
 		orr.setCode(0);

--
Gitblit v1.9.3