From 252905374177e0d8d98430cb33cf79840479a3fe Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期五, 15 八月 2025 15:12:12 +0800
Subject: [PATCH] 修改关联

---
 service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml b/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml
index c4d71b5..32289c7 100644
--- a/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml
+++ b/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml
@@ -278,6 +278,12 @@
         SELECT dispatch_no from pending_settlement_business where  bill_id =    #{id}
 
     </select>
+    <select id="selectPendingSettlementBusinessByNo"
+            resultMap="PendingSettlementBusinessResult">
+        <include refid="selectPendingSettlementBusinessVo"/>
+        where dispatch_no = #{dispatchNo}
+
+    </select>
 
     <!-- 鏂板 -->
     <insert id="insertPendingSettlementBusiness" parameterType="com.ruoyi.cwgl.domain.PendingSettlementBusiness"  useGeneratedKeys="true" keyProperty="id">
@@ -542,7 +548,7 @@
         </foreach>
     </delete>
     <delete id="cancelRelevancy">
-         UPDATE pending_settlement_business set bill_id = null ,bill_name = null
+         UPDATE pending_settlement_business set bill_id = null ,bill_name = null,is_create = 0
          where id = #{id}
     </delete>
 

--
Gitblit v1.8.0