From f90c70b7cfe4492df2e12433f960717ca47f7852 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期二, 23 十二月 2025 17:48:10 +0800
Subject: [PATCH] 应付接口

---
 service/src/main/java/com/ruoyi/cwgl/service/impl/PayableFeeManagementServiceImpl.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableFeeManagementServiceImpl.java b/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableFeeManagementServiceImpl.java
index 5b3f474..23fee79 100644
--- a/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableFeeManagementServiceImpl.java
+++ b/service/src/main/java/com/ruoyi/cwgl/service/impl/PayableFeeManagementServiceImpl.java
@@ -6,6 +6,7 @@
 import java.util.Map;
 import java.math.BigDecimal;
 
+import com.ruoyi.common.enums.SystemDataNoEnum;
 import com.ruoyi.common.utils.DateUtils;
 import com.ruoyi.common.utils.SecurityUtils;
 import javax.annotation.Resource;
@@ -17,6 +18,7 @@
 import com.ruoyi.cwgl.domain.vo.PayableBillCreateVo;
 import com.ruoyi.system.domain.SysConfig;
 import com.ruoyi.system.mapper.SysConfigMapper;
+import com.ruoyi.system.service.ISystemDataNoService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.transaction.annotation.Transactional;
 import org.springframework.stereotype.Service;
@@ -58,7 +60,8 @@
     private IPayableBillManagementService payableBillManagementService;
     @Resource
     private SysConfigMapper sysConfigMapper;
-
+    @Autowired
+    ISystemDataNoService systemDataNoService;
     /**
      * 鏌ヨ搴斾粯璐圭敤绠$悊
      *
@@ -342,6 +345,8 @@
         bill.setIsInternalSettlement(billCreateVo.getIsInternalSettlement());
         bill.setInternalSettlementUnit(billCreateVo.getInternalSettlementUnit());
         bill.setDocumentCount(statisticsVo.getDocumentCount());
+        bill.setCreateBy(SecurityUtils.getUsername());
+
         bill.setExchangeRate(statisticsVo.getRate());
         bill.setStatus("0"); // 鑽夌鐘舵��
         bill.setCreateTime(DateUtils.getNowDate());
@@ -358,6 +363,8 @@
             bill.setTotalAmount(statisticsVo.getTotalAmountHkd());
             bill.setCnyAmount(statisticsVo.getTotalAmountRmb());
         }
+        String noByKey = systemDataNoService.getNoByKey(SystemDataNoEnum.YFZD);
+        bill.setSystemNo(noByKey);
         
         // 淇濆瓨搴斾粯璐﹀崟璁板綍
         int result = payableBillManagementService.insertPayableBillManagement(bill);

--
Gitblit v1.8.0