From b922b12d1dc650df75530cc52af5451a5bbfece1 Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期四, 20 十一月 2025 20:36:51 +0800
Subject: [PATCH] 提交

---
 tms/src/main/java/com/ruoyi/tms/service/impl/TmsCustomerInfoServiceImpl.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/tms/src/main/java/com/ruoyi/tms/service/impl/TmsCustomerInfoServiceImpl.java b/tms/src/main/java/com/ruoyi/tms/service/impl/TmsCustomerInfoServiceImpl.java
index 6815ccd..6d97e25 100644
--- a/tms/src/main/java/com/ruoyi/tms/service/impl/TmsCustomerInfoServiceImpl.java
+++ b/tms/src/main/java/com/ruoyi/tms/service/impl/TmsCustomerInfoServiceImpl.java
@@ -2,8 +2,12 @@
 
 import java.util.List;
 
+import com.ruoyi.common.enums.SystemDataNoEnum;
 import com.ruoyi.common.utils.DateUtils;
 import javax.annotation.Resource;
+
+import com.ruoyi.system.service.ISystemDataNoService;
+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 +37,8 @@
     protected final Logger logger = LoggerFactory.getLogger(getClass());
     @Resource
     private TmsCustomerInfoMapper tmsCustomerInfoMapper;
-
+    @Autowired
+    ISystemDataNoService systemDataNoService;
 
     /**
      * 鏌ヨ瀹㈡埛淇℃伅
@@ -102,6 +107,7 @@
     @Override
     public int insertTmsCustomerInfo(TmsCustomerInfo tmsCustomerInfo)
     {
+        tmsCustomerInfo.setCustomerCode(systemDataNoService.getNoByKey(SystemDataNoEnum.CUST));
         tmsCustomerInfo.setCreateTime(DateUtils.getNowDate());
         return tmsCustomerInfoMapper.insertTmsCustomerInfo(tmsCustomerInfo);
     }

--
Gitblit v1.8.0