From 371d568cc984422607bbcfd699c1716f5df6a898 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期一, 29 十二月 2025 16:41:20 +0800
Subject: [PATCH] 新增api大屏查询
---
tms/src/main/resources/mapper/tms/TmsFinanceDetailMapper.xml | 78 +++++++++++++++++++++++++++++++++++++-
1 files changed, 75 insertions(+), 3 deletions(-)
diff --git a/tms/src/main/resources/mapper/tms/TmsFinanceDetailMapper.xml b/tms/src/main/resources/mapper/tms/TmsFinanceDetailMapper.xml
index d70b197..a9c265b 100644
--- a/tms/src/main/resources/mapper/tms/TmsFinanceDetailMapper.xml
+++ b/tms/src/main/resources/mapper/tms/TmsFinanceDetailMapper.xml
@@ -20,10 +20,22 @@
<result property="createTime" column="create_time" />
<result property="updateBy" column="update_by" />
<result property="updateTime" column="update_time" />
+ <result property="status" column="status" />
+ <result property="price" column="price" />
+ <result property="unit" column="unit" />
+ <result property="currency" column="currency" />
+ <result property="count" column="count" />
+ <result property="isYF" column="is_yf" />
+ <result property="yfPrice" column="yf_price" />
+ <result property="yfCurrency" column="yf_currency" />
+ <result property="yfServiceProviderIdType" column="yf_service_provider_id_type" />
+ <result property="yfServiceProviderId" column="yf_service_provider_id" />
+ <result property="yfServiceProviderName" column="yf_service_provider_name" />
+ <result property="yfServiceProviderType" column="yf_service_provider_type" />
</resultMap>
<sql id="selectTmsFinanceDetailVo">
- select thisTab.id, thisTab.fee_type, thisTab.finance_id, thisTab.finance_type, thisTab.dispatch_order_id, thisTab.data_source, thisTab.create_id, thisTab.initial_fee_amount, thisTab.actual_fee_amount, thisTab.fee_voucher_url, thisTab.fee_create_time, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time from tms_finance_detail AS thisTab
+ select thisTab.id, thisTab.fee_type, thisTab.finance_id, thisTab.finance_type, thisTab.dispatch_order_id, thisTab.data_source, thisTab.create_id, thisTab.initial_fee_amount, thisTab.actual_fee_amount, thisTab.fee_voucher_url, thisTab.fee_create_time, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time , thisTab.status, thisTab.price, thisTab.unit, thisTab.currency, thisTab.count, thisTab.is_yf, thisTab.yf_price, thisTab.yf_currency, thisTab.yf_service_provider_id_type, thisTab.yf_service_provider_id, thisTab.yf_service_provider_name, thisTab.yf_service_provider_type from tms_finance_detail AS thisTab
</sql>
<sql id="selectTmsFinanceDetailVoCount">
select count(0) from tms_finance_detail as thisTab
@@ -40,6 +52,18 @@
<if test="actualFeeAmount != null "> and thisTab.actual_fee_amount = #{actualFeeAmount}</if>
<if test="feeVoucherUrl != null and feeVoucherUrl != ''"> and thisTab.fee_voucher_url = #{feeVoucherUrl}</if>
<if test="feeCreateTime != null "> and thisTab.fee_create_time = #{feeCreateTime}</if>
+ <if test="status != null "> and thisTab.status = #{status}</if>
+ <if test="price != null "> and thisTab.price = #{price}</if>
+ <if test="unit != null "> and thisTab.unit = #{unit}</if>
+ <if test="currency != null "> and thisTab.currency = #{currency}</if>
+ <if test="count != null "> and thisTab.count = #{count}</if>
+ <if test="isYF != null "> and thisTab.is_yf = #{isYF}</if>
+ <if test="yfPrice != null "> and thisTab.yf_price = #{yfPrice}</if>
+ <if test="yfCurrency != null and yfCurrency != ''"> and thisTab.yf_currency = #{yfCurrency}</if>
+ <if test="yfServiceProviderIdType != null and yfServiceProviderIdType != ''"> and thisTab.yf_service_provider_id_type = #{yfServiceProviderIdType}</if>
+ <if test="yfServiceProviderId != null "> and thisTab.yf_service_provider_id = #{yfServiceProviderId}</if>
+ <if test="yfServiceProviderName != null and yfServiceProviderName != ''"> and thisTab.yf_service_provider_name like concat('%', #{yfServiceProviderName}, '%')</if>
+ <if test="yfServiceProviderType != null "> and thisTab.yf_service_provider_type = #{yfServiceProviderType}</if>
</sql>
<!--鏌ヨ-->
@@ -81,6 +105,18 @@
<if test="createTime != null">create_time,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateTime != null">update_time,</if>
+ <if test="status != null">status,</if>
+ <if test="price != null">price,</if>
+ <if test="unit != null">unit,</if>
+ <if test="currency != null">currency,</if>
+ <if test="count != null">count,</if>
+ <if test="isYF != null">is_yf,</if>
+ <if test="yfPrice != null">yf_price,</if>
+ <if test="yfCurrency != null">yf_currency,</if>
+ <if test="yfServiceProviderIdType != null">yf_service_provider_id_type,</if>
+ <if test="yfServiceProviderId != null">yf_service_provider_id,</if>
+ <if test="yfServiceProviderName != null">yf_service_provider_name,</if>
+ <if test="yfServiceProviderType != null">yf_service_provider_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="feeType != null">#{feeType},</if>
@@ -97,17 +133,29 @@
<if test="createTime != null">#{createTime},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateTime != null">#{updateTime},</if>
+ <if test="status != null">#{status},</if>
+ <if test="price != null">#{price},</if>
+ <if test="unit != null">#{unit},</if>
+ <if test="currency != null">#{currency},</if>
+ <if test="count != null">#{count},</if>
+ <if test="isYF != null">#{isYF},</if>
+ <if test="yfPrice != null">#{yfPrice},</if>
+ <if test="yfCurrency != null">#{yfCurrency},</if>
+ <if test="yfServiceProviderIdType != null">#{yfServiceProviderIdType},</if>
+ <if test="yfServiceProviderId != null">#{yfServiceProviderId},</if>
+ <if test="yfServiceProviderName != null">#{yfServiceProviderName},</if>
+ <if test="yfServiceProviderType != null">#{yfServiceProviderType},</if>
</trim>
</insert>
<insert id="insertTmsFinanceDetailBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id">
insert into tms_finance_detail
<trim prefix="(" suffix=") values" suffixOverrides=",">
- id,fee_type,finance_id,finance_type,dispatch_order_id,data_source,create_id,initial_fee_amount,actual_fee_amount,fee_voucher_url,fee_create_time,create_by,create_time,update_by,update_time,
+ fee_type,finance_id,finance_type,dispatch_order_id,data_source,create_id,initial_fee_amount,actual_fee_amount,fee_voucher_url,fee_create_time,create_by,create_time,status,price,unit,currency,count,is_yf,yf_price,yf_currency,yf_service_provider_id_type,yf_service_provider_id,yf_service_provider_name,yf_service_provider_type,
</trim>
<foreach item="item" index="index" collection="list" separator=",">
<trim prefix="(" suffix=") " suffixOverrides=",">
- #{item.id},#{item.feeType},#{item.financeId},#{item.financeType},#{item.dispatchOrderId},#{item.dataSource},#{item.createId},#{item.initialFeeAmount},#{item.actualFeeAmount},#{item.feeVoucherUrl},#{item.feeCreateTime},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},
+ #{item.feeType},#{item.financeId},#{item.financeType},#{item.dispatchOrderId},#{item.dataSource},#{item.createId},#{item.initialFeeAmount},#{item.actualFeeAmount},#{item.feeVoucherUrl},#{item.feeCreateTime},#{item.createBy},#{item.createTime},#{item.status},#{item.price},#{item.unit},#{item.currency},#{item.count},#{item.isYF},#{item.yfPrice},#{item.yfCurrency},#{item.yfServiceProviderIdType},#{item.yfServiceProviderId},#{item.yfServiceProviderName},#{item.yfServiceProviderType},
</trim>
</foreach>
</insert>
@@ -130,6 +178,18 @@
<if test="createTime != null">create_time = #{createTime},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateTime != null">update_time = #{updateTime},</if>
+ <if test="status != null">status = #{status},</if>
+ <if test="price != null">price = #{price},</if>
+ <if test="unit != null">unit = #{unit},</if>
+ <if test="currency != null">currency = #{currency},</if>
+ <if test="count != null">count = #{count},</if>
+ <if test="isYF != null">is_yf = #{isYF},</if>
+ yf_price = #{yfPrice},
+ yf_currency = #{yfCurrency},
+ yf_service_provider_id_type = #{yfServiceProviderIdType},
+ yf_service_provider_id = #{yfServiceProviderId},
+ yf_service_provider_name = #{yfServiceProviderName},
+ yf_service_provider_type = #{yfServiceProviderType},
</trim>
where id = #{id}
</update>
@@ -152,6 +212,18 @@
<if test="item.createTime != null">create_time = #{item.createTime},</if>
<if test="item.updateBy != null and item.updateBy != ''">update_by = #{item.updateBy},</if>
<if test="item.updateTime != null">update_time = #{item.updateTime},</if>
+ <if test="item.status != null">status = #{item.status},</if>
+ <if test="item.count != null">count = #{item.count},</if>
+ <if test="item.currency != null">currency = #{item.currency},</if>
+ <if test="item.unit != null">unit = #{item.unit},</if>
+ <if test="item.price != null">price = #{item.price},</if>
+ <if test="item.isYF != null">is_yf = #{item.isYF},</if>
+ <if test="item.yfPrice != null">yf_price = #{item.yfPrice},</if>
+ <if test="item.yfCurrency != null">yf_currency = #{item.yfCurrency},</if>
+ <if test="item.yfServiceProviderIdType != null">yf_service_provider_id_type = #{item.yfServiceProviderIdType},</if>
+ <if test="item.yfServiceProviderId != null">yf_service_provider_id = #{item.yfServiceProviderId},</if>
+ <if test="item.yfServiceProviderName != null">yf_service_provider_name = #{item.yfServiceProviderName},</if>
+ <if test="item.yfServiceProviderType != null">yf_service_provider_type = #{item.yfServiceProviderType},</if>
</trim>
where id = #{item.id}
</foreach>
--
Gitblit v1.8.0