From 486b62e149dab20c2bbfcdd6f262dd8f88a317d9 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期二, 13 一月 2026 17:13:28 +0800
Subject: [PATCH] 新增状态字段

---
 service/src/main/java/com/ruoyi/cwgl/service/impl/PayableBillManagementServiceImpl.java |   22 ++++++++++++++++++++--
 1 files changed, 20 insertions(+), 2 deletions(-)

diff --git a/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableBillManagementServiceImpl.java b/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableBillManagementServiceImpl.java
index b6f029a..d24c80a 100644
--- a/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableBillManagementServiceImpl.java
+++ b/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableBillManagementServiceImpl.java
@@ -4,6 +4,11 @@
 
 import com.ruoyi.common.utils.DateUtils;
 import javax.annotation.Resource;
+
+import com.ruoyi.cwgl.mapper.PayableFeeManagementMapper;
+import com.ruoyi.cwgl.service.IPayableBillManagementLogService;
+import com.ruoyi.cwgl.service.IPayableFeeManagementService;
+import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.stereotype.Service;
 import org.springframework.scheduling.annotation.Async;
@@ -33,7 +38,10 @@
     protected final Logger logger = LoggerFactory.getLogger(getClass());
     @Resource
     private PayableBillManagementMapper payableBillManagementMapper;
-
+    @Autowired
+    private IPayableBillManagementLogService logService;
+    @Resource
+    private PayableFeeManagementMapper payableFeeManagementMapper;
 
     /**
      * 鏌ヨ搴斾粯璐﹀崟绠$悊
@@ -204,6 +212,16 @@
         bill.setStatus("2");
         bill.setUpdateTime(DateUtils.getNowDate());
         
-        return updatePayableBillManagement(bill);
+        int result = updatePayableBillManagement(bill);
+        
+        if (result > 0) {
+            // 浣滃簾搴斾粯璐﹀崟鍚庯紝闇�瑕佸皢鍏宠仈鐨勫簲浠樿垂鐢ㄨ褰曟仮澶嶄负寰呯敓鎴愯处鍗曠姸鎬�
+            String relatedBillNo = bill.getSystemNo();
+            if (relatedBillNo != null && !relatedBillNo.isEmpty()) {
+                payableFeeManagementMapper.updatePayableFeeManagementByRelatedBillNo(relatedBillNo);
+            }
+        }
+        
+        return result;
     }
 }

--
Gitblit v1.8.0