From 011f2ef91351719dca12d36abef4d498b2eb86b8 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 12 一月 2026 16:03:35 +0800
Subject: [PATCH] 修改发票新增

---
 service/src/main/resources/mapper/cwgl/ReceivableBillManagementMapper.xml |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/service/src/main/resources/mapper/cwgl/ReceivableBillManagementMapper.xml b/service/src/main/resources/mapper/cwgl/ReceivableBillManagementMapper.xml
index 7457e0c..188b8b0 100644
--- a/service/src/main/resources/mapper/cwgl/ReceivableBillManagementMapper.xml
+++ b/service/src/main/resources/mapper/cwgl/ReceivableBillManagementMapper.xml
@@ -9,6 +9,7 @@
         <result property="systemNo"    column="system_no"    />
         <result property="billName"    column="bill_name"    />
         <result property="customerName"    column="customer_name"    />
+        <result property="payee"    column="payee"    />
         <result property="isInternalSettlement"    column="is_internal_settlement"    />
         <result property="internalSettlementUnit"    column="internal_settlement_unit"    />
         <result property="documentCount"    column="document_count"    />
@@ -37,7 +38,7 @@
     </resultMap>
 
     <sql id="selectReceivableBillManagementVo">
-        select thisTab.id, thisTab.system_no, thisTab.bill_name, thisTab.customer_name, thisTab.is_internal_settlement, thisTab.internal_settlement_unit, thisTab.document_count, thisTab.total_amount, thisTab.currency, thisTab.discount_amount, thisTab.received_amount, thisTab.pending_amount, thisTab.exchange_rate, thisTab.cny_amount, thisTab.period_type, thisTab.business_start_date, thisTab.business_end_date, thisTab.billing_start_date, thisTab.billing_end_date, thisTab.bill_generate_date, thisTab.bill_send_date, thisTab.bill_due_date, thisTab.status, thisTab.remark, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.deleted from receivable_bill_management AS thisTab
+        select thisTab.id, thisTab.system_no, thisTab.bill_name, thisTab.customer_name, thisTab.payee, thisTab.is_internal_settlement, thisTab.internal_settlement_unit, thisTab.document_count, thisTab.total_amount, thisTab.currency, thisTab.discount_amount, thisTab.received_amount, thisTab.pending_amount, thisTab.exchange_rate, thisTab.cny_amount, thisTab.period_type, thisTab.business_start_date, thisTab.business_end_date, thisTab.billing_start_date, thisTab.billing_end_date, thisTab.bill_generate_date, thisTab.bill_send_date, thisTab.bill_due_date, thisTab.status, thisTab.remark, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.deleted from receivable_bill_management AS thisTab
     </sql>
     <sql id="selectReceivableBillManagementVoCount">
         select count(0) from receivable_bill_management as thisTab
@@ -47,6 +48,7 @@
         <if test="systemNo != null  and systemNo != ''"> and thisTab.system_no = #{systemNo}</if>
         <if test="billName != null  and billName != ''"> and  thisTab.bill_name like concat('%', #{billName}, '%')</if>
         <if test="customerName != null  and customerName != ''"> and  thisTab.customer_name like concat('%', #{customerName}, '%')</if>
+        <if test="payee != null  and payee != ''"> and  thisTab.payee like concat('%', #{payee}, '%')</if>
         <if test="isInternalSettlement != null  and isInternalSettlement != ''"> and thisTab.is_internal_settlement = #{isInternalSettlement}</if>
         <if test="internalSettlementUnit != null  and internalSettlementUnit != ''"> and thisTab.internal_settlement_unit = #{internalSettlementUnit}</if>
         <if test="documentCount != null "> and thisTab.document_count = #{documentCount}</if>
@@ -97,6 +99,7 @@
             <if test="systemNo != null and systemNo != ''">system_no,</if>
             <if test="billName != null and billName != ''">bill_name,</if>
             <if test="customerName != null and customerName != ''">customer_name,</if>
+            <if test="payee != null and payee != ''">payee,</if>
             <if test="isInternalSettlement != null and isInternalSettlement != ''">is_internal_settlement,</if>
             <if test="internalSettlementUnit != null">internal_settlement_unit,</if>
             <if test="documentCount != null">document_count,</if>
@@ -127,6 +130,7 @@
             <if test="systemNo != null and systemNo != ''">#{systemNo},</if>
             <if test="billName != null and billName != ''">#{billName},</if>
             <if test="customerName != null and customerName != ''">#{customerName},</if>
+            <if test="payee != null and payee != ''">#{payee},</if>
             <if test="isInternalSettlement != null and isInternalSettlement != ''">#{isInternalSettlement},</if>
             <if test="internalSettlementUnit != null">#{internalSettlementUnit},</if>
             <if test="documentCount != null">#{documentCount},</if>
@@ -158,11 +162,11 @@
     <insert id="insertReceivableBillManagementBatch" parameterType="java.util.List"  useGeneratedKeys="true" keyProperty="id">
         insert into receivable_bill_management
         <trim prefix="(" suffix=") values" suffixOverrides=",">
-            system_no,bill_name,customer_name,is_internal_settlement,internal_settlement_unit,document_count,total_amount,currency,discount_amount,received_amount,pending_amount,exchange_rate,cny_amount,period_type,business_start_date,business_end_date,billing_start_date,billing_end_date,bill_generate_date,bill_send_date,bill_due_date,status,remark,create_by,create_time,update_by,update_time,deleted,
+            system_no,bill_name,customer_name,payee,is_internal_settlement,internal_settlement_unit,document_count,total_amount,currency,discount_amount,received_amount,pending_amount,exchange_rate,cny_amount,period_type,business_start_date,business_end_date,billing_start_date,billing_end_date,bill_generate_date,bill_send_date,bill_due_date,status,remark,create_by,create_time,update_by,update_time,deleted,
         </trim>
         <foreach item="item" index="index" collection="list" separator=",">
             <trim prefix="(" suffix=") " suffixOverrides=",">
-                #{item.systemNo},#{item.billName},#{item.customerName},#{item.isInternalSettlement},#{item.internalSettlementUnit},#{item.documentCount},#{item.totalAmount},#{item.currency},#{item.discountAmount},#{item.receivedAmount},#{item.pendingAmount},#{item.exchangeRate},#{item.cnyAmount},#{item.periodType},#{item.businessStartDate},#{item.businessEndDate},#{item.billingStartDate},#{item.billingEndDate},#{item.billGenerateDate},#{item.billSendDate},#{item.billDueDate},#{item.status},#{item.remark},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.deleted},
+                #{item.systemNo},#{item.billName},#{item.customerName},#{item.payee},#{item.isInternalSettlement},#{item.internalSettlementUnit},#{item.documentCount},#{item.totalAmount},#{item.currency},#{item.discountAmount},#{item.receivedAmount},#{item.pendingAmount},#{item.exchangeRate},#{item.cnyAmount},#{item.periodType},#{item.businessStartDate},#{item.businessEndDate},#{item.billingStartDate},#{item.billingEndDate},#{item.billGenerateDate},#{item.billSendDate},#{item.billDueDate},#{item.status},#{item.remark},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.deleted},
             </trim>
         </foreach>
     </insert>
@@ -174,6 +178,7 @@
             <if test="systemNo != null and systemNo != ''">system_no = #{systemNo},</if>
             <if test="billName != null and billName != ''">bill_name = #{billName},</if>
             <if test="customerName != null and customerName != ''">customer_name = #{customerName},</if>
+            <if test="payee != null and payee != ''">payee = #{payee},</if>
             <if test="isInternalSettlement != null and isInternalSettlement != ''">is_internal_settlement = #{isInternalSettlement},</if>
             <if test="internalSettlementUnit != null">internal_settlement_unit = #{internalSettlementUnit},</if>
             <if test="documentCount != null">document_count = #{documentCount},</if>
@@ -210,6 +215,7 @@
                 <if test="item.systemNo != null and item.systemNo != ''">system_no = #{item.systemNo},</if>
                 <if test="item.billName != null and item.billName != ''">bill_name = #{item.billName},</if>
                 <if test="item.customerName != null and item.customerName != ''">customer_name = #{item.customerName},</if>
+                <if test="item.payee != null and item.payee != ''">payee = #{item.payee},</if>
                 <if test="item.isInternalSettlement != null and item.isInternalSettlement != ''">is_internal_settlement = #{item.isInternalSettlement},</if>
                 <if test="item.internalSettlementUnit != null">internal_settlement_unit = #{item.internalSettlementUnit},</if>
                 <if test="item.documentCount != null">document_count = #{item.documentCount},</if>

--
Gitblit v1.8.0