From 5b0df817144a1e0ba5a7143256b200365747f04a Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期二, 23 十二月 2025 18:52:17 +0800
Subject: [PATCH] 应付接口
---
service/src/main/resources/mapper/cwgl/InvoiceInfoMapper.xml | 18 +++++++++++++++---
1 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/service/src/main/resources/mapper/cwgl/InvoiceInfoMapper.xml b/service/src/main/resources/mapper/cwgl/InvoiceInfoMapper.xml
index e8d39ff..2602835 100644
--- a/service/src/main/resources/mapper/cwgl/InvoiceInfoMapper.xml
+++ b/service/src/main/resources/mapper/cwgl/InvoiceInfoMapper.xml
@@ -7,7 +7,9 @@
<resultMap type="com.ruoyi.cwgl.domain.InvoiceInfo" id="InvoiceInfoResult">
<result property="id" column="id" />
<result property="invoiceCompanyName" column="invoice_company_name" />
+ <result property="customerId" column="customer_id" />
<result property="invoiceCreditCode" column="invoice_credit_code" />
+ <result property="customerName" column="customer_name" />
<result property="invoiceBankName" column="invoice_bank_name" />
<result property="invoiceBankNo" column="invoice_bank_no" />
<result property="invoiceOperatingLicenseAddress" column="invoice_operating_license_address" />
@@ -23,7 +25,7 @@
</resultMap>
<sql id="selectInvoiceInfoVo">
- select thisTab.id, thisTab.invoice_company_name, thisTab.invoice_credit_code, thisTab.invoice_bank_name, thisTab.invoice_bank_no, thisTab.invoice_operating_license_address, thisTab.invoice_operating_license_phone, thisTab.invoice_operating_license_email, thisTab.status, thisTab.create_by, thisTab.update_by, thisTab.create_time, thisTab.update_time, thisTab.deleted, thisTab.invoice_type from invoice_info AS thisTab
+ select thisTab.id, thisTab.invoice_company_name, thisTab.customer_id, thisTab.invoice_credit_code, thisTab.customer_name, thisTab.invoice_bank_name, thisTab.invoice_bank_no, thisTab.invoice_operating_license_address, thisTab.invoice_operating_license_phone, thisTab.invoice_operating_license_email, thisTab.status, thisTab.create_by, thisTab.update_by, thisTab.create_time, thisTab.update_time, thisTab.deleted, thisTab.invoice_type from invoice_info AS thisTab
</sql>
<sql id="selectInvoiceInfoVoCount">
select count(0) from invoice_info as thisTab
@@ -31,7 +33,9 @@
<sql id="whereCondition">
<if test="invoiceCompanyName != null and invoiceCompanyName != ''"> and thisTab.invoice_company_name like concat('%', #{invoiceCompanyName}, '%')</if>
+ <if test="customerId != null "> and thisTab.customer_id = #{customerId}</if>
<if test="invoiceCreditCode != null and invoiceCreditCode != ''"> and thisTab.invoice_credit_code = #{invoiceCreditCode}</if>
+ <if test="customerName != null and customerName != ''"> and thisTab.customer_name like concat('%', #{customerName}, '%')</if>
<if test="invoiceBankName != null and invoiceBankName != ''"> and thisTab.invoice_bank_name like concat('%', #{invoiceBankName}, '%')</if>
<if test="invoiceBankNo != null and invoiceBankNo != ''"> and thisTab.invoice_bank_no = #{invoiceBankNo}</if>
<if test="invoiceOperatingLicenseAddress != null and invoiceOperatingLicenseAddress != ''"> and thisTab.invoice_operating_license_address = #{invoiceOperatingLicenseAddress}</if>
@@ -68,7 +72,9 @@
insert into invoice_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="invoiceCompanyName != null">invoice_company_name,</if>
+ <if test="customerId != null">customer_id,</if>
<if test="invoiceCreditCode != null">invoice_credit_code,</if>
+ <if test="customerName != null">customer_name,</if>
<if test="invoiceBankName != null">invoice_bank_name,</if>
<if test="invoiceBankNo != null">invoice_bank_no,</if>
<if test="invoiceOperatingLicenseAddress != null">invoice_operating_license_address,</if>
@@ -84,7 +90,9 @@
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="invoiceCompanyName != null">#{invoiceCompanyName},</if>
+ <if test="customerId != null">#{customerId},</if>
<if test="invoiceCreditCode != null">#{invoiceCreditCode},</if>
+ <if test="customerName != null">#{customerName},</if>
<if test="invoiceBankName != null">#{invoiceBankName},</if>
<if test="invoiceBankNo != null">#{invoiceBankNo},</if>
<if test="invoiceOperatingLicenseAddress != null">#{invoiceOperatingLicenseAddress},</if>
@@ -103,11 +111,11 @@
<insert id="insertInvoiceInfoBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
insert into invoice_info
<trim prefix="(" suffix=") values" suffixOverrides=",">
- id,invoice_company_name,invoice_credit_code,invoice_bank_name,invoice_bank_no,invoice_operating_license_address,invoice_operating_license_phone,invoice_operating_license_email,status,create_by,update_by,create_time,update_time,deleted,invoice_type,
+ id,invoice_company_name,customer_id,invoice_credit_code,customer_name,invoice_bank_name,invoice_bank_no,invoice_operating_license_address,invoice_operating_license_phone,invoice_operating_license_email,status,create_by,update_by,create_time,update_time,deleted,invoice_type,
</trim>
<foreach item="item" index="index" collection="list" separator=",">
<trim prefix="(" suffix=") " suffixOverrides=",">
- #{item.id},#{item.invoiceCompanyName},#{item.invoiceCreditCode},#{item.invoiceBankName},#{item.invoiceBankNo},#{item.invoiceOperatingLicenseAddress},#{item.invoiceOperatingLicensePhone},#{item.invoiceOperatingLicenseEmail},#{item.status},#{item.createBy},#{item.updateBy},#{item.createTime},#{item.updateTime},#{item.deleted},#{item.invoiceType},
+ #{item.id},#{item.invoiceCompanyName},#{item.customerId},#{item.invoiceCreditCode},#{item.customerName},#{item.invoiceBankName},#{item.invoiceBankNo},#{item.invoiceOperatingLicenseAddress},#{item.invoiceOperatingLicensePhone},#{item.invoiceOperatingLicenseEmail},#{item.status},#{item.createBy},#{item.updateBy},#{item.createTime},#{item.updateTime},#{item.deleted},#{item.invoiceType},
</trim>
</foreach>
</insert>
@@ -117,7 +125,9 @@
update invoice_info
<trim prefix="SET" suffixOverrides=",">
<if test="invoiceCompanyName != null">invoice_company_name = #{invoiceCompanyName},</if>
+ <if test="customerId != null">customer_id = #{customerId},</if>
<if test="invoiceCreditCode != null">invoice_credit_code = #{invoiceCreditCode},</if>
+ <if test="customerName != null">customer_name = #{customerName},</if>
<if test="invoiceBankName != null">invoice_bank_name = #{invoiceBankName},</if>
<if test="invoiceBankNo != null">invoice_bank_no = #{invoiceBankNo},</if>
<if test="invoiceOperatingLicenseAddress != null">invoice_operating_license_address = #{invoiceOperatingLicenseAddress},</if>
@@ -139,7 +149,9 @@
update invoice_info
<trim prefix="SET" suffixOverrides=",">
<if test="item.invoiceCompanyName != null">invoice_company_name = #{item.invoiceCompanyName},</if>
+ <if test="item.customerId != null">customer_id = #{item.customerId},</if>
<if test="item.invoiceCreditCode != null">invoice_credit_code = #{item.invoiceCreditCode},</if>
+ <if test="item.customerName != null">customer_name = #{item.customerName},</if>
<if test="item.invoiceBankName != null">invoice_bank_name = #{item.invoiceBankName},</if>
<if test="item.invoiceBankNo != null">invoice_bank_no = #{item.invoiceBankNo},</if>
<if test="item.invoiceOperatingLicenseAddress != null">invoice_operating_license_address = #{item.invoiceOperatingLicenseAddress},</if>
--
Gitblit v1.8.0