| | |
| | | <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 , thisTab.status, thisTab.price, thisTab.unit, thisTab.currency, thisTab.count 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 |
| | |
| | | <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> |
| | | |
| | | <!--查询--> |
| | |
| | | <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> |
| | |
| | | <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=","> |
| | | 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 |
| | | 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.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.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> |
| | |
| | | <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> |
| | |
| | | <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> |