| | |
| | | <result property="yfServiceProviderId" column="yf_service_provider_id" /> |
| | | <result property="yfServiceProviderName" column="yf_service_provider_name" /> |
| | | <result property="yfServiceProviderType" column="yf_service_provider_type" /> |
| | | <result property="remark" column="remark" /> |
| | | </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, 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 |
| | | 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 , thisTab.remark from tms_finance_detail AS thisTab |
| | | </sql> |
| | | <sql id="selectTmsFinanceDetailVoCount"> |
| | | select count(0) from tms_finance_detail as thisTab |
| | |
| | | <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> |
| | | <if test="remark != null "> and thisTab.remark = #{remark}</if> |
| | | </sql> |
| | | |
| | | <!--查询--> |
| | |
| | | <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> |
| | | <if test="remark != null">remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="feeType != null">#{feeType},</if> |
| | |
| | | <if test="yfServiceProviderId != null">#{yfServiceProviderId},</if> |
| | | <if test="yfServiceProviderName != null">#{yfServiceProviderName},</if> |
| | | <if test="yfServiceProviderType != null">#{yfServiceProviderType},</if> |
| | | <if test="remark != null">#{remark},</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,is_yf,yf_price,yf_currency,yf_service_provider_id_type,yf_service_provider_id,yf_service_provider_name,yf_service_provider_type, |
| | | 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,remark, |
| | | </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.isYF},#{item.yfPrice},#{item.yfCurrency},#{item.yfServiceProviderIdType},#{item.yfServiceProviderId},#{item.yfServiceProviderName},#{item.yfServiceProviderType}, |
| | | #{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},#{item.remark}, |
| | | </trim> |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="currency != null">currency = #{currency},</if> |
| | | <if test="count != null">count = #{count},</if> |
| | | <if test="isYF != null">is_yf = #{isYF},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | yf_price = #{yfPrice}, |
| | | yf_currency = #{yfCurrency}, |
| | | yf_service_provider_id_type = #{yfServiceProviderIdType}, |
| | |
| | | <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> |
| | | <if test="item.remark != null">remark = #{item.remark},</if> |
| | | </trim> |
| | | where id = #{item.id} |
| | | </foreach> |