From d2afd43a81204ba0a7d7bd3b269565a9f3158be4 Mon Sep 17 00:00:00 2001 From: wujianwei <wjw@11.com> Date: 星期一, 18 八月 2025 10:04:53 +0800 Subject: [PATCH] 新增字段 --- service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml b/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml index d9e1d2e..ac244be 100644 --- a/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml +++ b/service/src/main/resources/mapper/cwgl/PendingSettlementBusinessMapper.xml @@ -60,10 +60,11 @@ <result property="confirmedTotalCost" column="confirmed_total_cost" /> <result property="isIncomeMatched" column="is_income_matched" /> <result property="isCostMatched" column="is_cost_matched" /> + <result property="relatedBillStatus" column="related_bill_status" /> </resultMap> <sql id="selectPendingSettlementBusinessVo"> - select thisTab.id, thisTab.booking_no, thisTab.customer_id, thisTab.carrier_id, thisTab.project_name, thisTab.dispatch_no, thisTab.created_time, thisTab.transport_mode, thisTab.product_id, thisTab.customer_name, thisTab.operation_mode, thisTab.carrier_name, thisTab.departure_location, thisTab.arrival_location, thisTab.vehicle_id, thisTab.license_plate_number, thisTab.vehicle_type, thisTab.main_driver, thisTab.assistant_driver, thisTab.point_num, thisTab.business_contact, thisTab.estimated_total_income, thisTab.estimated_total_cost, thisTab.estimated_profit, thisTab.electronic_lock, thisTab.re_weighing_weight, thisTab.quantity, thisTab.actual_departure_time, thisTab.required_arrival_time, thisTab.actual_arrival_time, thisTab.be_return, thisTab.dispatch_quantity, thisTab.dispatch_weight, thisTab.dispatch_volume, thisTab.empty_mileage, thisTab.empty_fuel, thisTab.heavy_mileage, thisTab.heavy_fuel, thisTab.be_scheduled, thisTab.tracking_no, thisTab.seal_no, thisTab.schedule_no, thisTab.transport_status, thisTab.estimated_bill_id, thisTab.settlement_bill_id, thisTab.bill_id, thisTab.settlement_status, thisTab.create_time, thisTab.update_time, thisTab.is_create, thisTab.bill_name, thisTab.confirmed_total_income, thisTab.confirmed_total_cost, thisTab.is_income_matched, thisTab.is_cost_matched from pending_settlement_business AS thisTab + select thisTab.id, thisTab.booking_no, thisTab.customer_id, thisTab.carrier_id, thisTab.project_name, thisTab.dispatch_no, thisTab.created_time, thisTab.transport_mode, thisTab.product_id, thisTab.customer_name, thisTab.operation_mode, thisTab.carrier_name, thisTab.departure_location, thisTab.arrival_location, thisTab.vehicle_id, thisTab.license_plate_number, thisTab.vehicle_type, thisTab.main_driver, thisTab.assistant_driver, thisTab.point_num, thisTab.business_contact, thisTab.estimated_total_income, thisTab.estimated_total_cost, thisTab.estimated_profit, thisTab.electronic_lock, thisTab.re_weighing_weight, thisTab.quantity, thisTab.actual_departure_time, thisTab.required_arrival_time, thisTab.actual_arrival_time, thisTab.be_return, thisTab.dispatch_quantity, thisTab.dispatch_weight, thisTab.dispatch_volume, thisTab.empty_mileage, thisTab.empty_fuel, thisTab.heavy_mileage, thisTab.heavy_fuel, thisTab.be_scheduled, thisTab.tracking_no, thisTab.seal_no, thisTab.schedule_no, thisTab.transport_status, thisTab.estimated_bill_id, thisTab.settlement_bill_id, thisTab.bill_id, thisTab.settlement_status, thisTab.create_time, thisTab.update_time, thisTab.is_create, thisTab.bill_name, thisTab.confirmed_total_income, thisTab.confirmed_total_cost, thisTab.is_income_matched, thisTab.is_cost_matched, thisTab.related_bill_status from pending_settlement_business AS thisTab </sql> <sql id="selectPendingSettlementBusinessVoCount"> select count(0) from pending_settlement_business as thisTab @@ -541,7 +542,7 @@ <update id="updatePendingSettlementBusinessIsCreate"> UPDATE pending_settlement_business - SET is_create = 1 ,bill_id = #{id},bill_name = #{billName} + SET is_create = 1 ,bill_id = #{id},bill_name = #{billName},related_bill_status = 1 WHERE dispatch_no IN <foreach item="item" collection="list" open="(" separator="," close=")"> #{item} @@ -551,6 +552,14 @@ UPDATE pending_settlement_business set bill_name = #{billName} where bill_id = #{id} + </update> + <update id="updateEstimatedReceivableBillStatus"> + UPDATE pending_settlement_business + SET related_bill_status = #{status} + WHERE dispatch_no IN + <foreach item="item" collection="list" open="(" separator="," close=")"> + #{item} + </foreach> </update> <!--鍒犻櫎--> @@ -564,7 +573,7 @@ </foreach> </delete> <delete id="cancelRelevancy"> - UPDATE pending_settlement_business set bill_id = null ,bill_name = null,is_create = 0 + UPDATE pending_settlement_business set bill_id = null ,bill_name = null,is_create = 0,related_bill_status = 0 where id = #{id} </delete> -- Gitblit v1.8.0