zhangback
2025-11-20 b922b12d1dc650df75530cc52af5451a5bbfece1
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);
    }