| | |
| | | <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" /> |
| | | </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 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 from tms_finance_detail AS thisTab |
| | | </sql> |
| | | <sql id="selectTmsFinanceDetailVoCount"> |
| | | select count(0) from tms_finance_detail as thisTab |
| | |
| | | <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> |
| | | </sql> |
| | | |
| | | <!--查询--> |
| | |
| | | <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> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="feeType != null">#{feeType},</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> |
| | | </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, |
| | | 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 |
| | | </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.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} |
| | | </trim> |
| | | </foreach> |
| | | </insert> |
| | |
| | | <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> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <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> |
| | | </trim> |
| | | where id = #{item.id} |
| | | </foreach> |