| | |
| | | <result property="serviceProviderType" column="service_provider_type" /> |
| | | <result property="pushStatus" column="push_status" /> |
| | | <result property="pushTime" column="push_time" /> |
| | | <result property="sourceSystemId" column="source_system_id" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectTmsApBillVo"> |
| | | select thisTab.id, thisTab.system_no, thisTab.bill_name, thisTab.settle_amount, thisTab.settle_rate, thisTab.dispatch_count, thisTab.settled_amount, thisTab.invoice_status, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.deduction_amount, thisTab.actual_settlement_amount, thisTab.service_provider_id, thisTab.service_provider_name, thisTab.service_provider_type, thisTab.push_status, thisTab.push_time from tms_ap_bill AS thisTab |
| | | select thisTab.id, thisTab.system_no, thisTab.bill_name, thisTab.settle_amount, thisTab.settle_rate, thisTab.dispatch_count, thisTab.settled_amount, thisTab.invoice_status, thisTab.status, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.deduction_amount, thisTab.actual_settlement_amount, thisTab.service_provider_id, thisTab.service_provider_name, thisTab.service_provider_type, thisTab.push_status, thisTab.push_time, thisTab.source_system_id from tms_ap_bill AS thisTab |
| | | </sql> |
| | | <sql id="selectTmsApBillVoCount"> |
| | | select count(0) from tms_ap_bill as thisTab |
| | |
| | | <if test="deductionAmount != null "> and thisTab.deduction_amount = #{deductionAmount}</if> |
| | | <if test="actualSettlementAmount != null "> and thisTab.actual_settlement_amount = #{actualSettlementAmount}</if> |
| | | <if test="pushStatus != null "> and thisTab.push_status = #{pushStatus}</if> |
| | | <if test="sourceSystemId != null "> and thisTab.source_system_id = #{sourceSystemId}</if> |
| | | </sql> |
| | | |
| | | <!--查询--> |
| | |
| | | <if test="serviceProviderType != null and serviceProviderType != ''">service_provider_type,</if> |
| | | <if test="pushStatus != null">push_status,</if> |
| | | <if test="pushTime != null">push_time,</if> |
| | | <if test="sourceSystemId != null">source_system_id,</if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | |
| | | <if test="serviceProviderType != null and serviceProviderType != ''">#{serviceProviderType},</if> |
| | | <if test="pushStatus != null">#{pushStatus},</if> |
| | | <if test="pushTime != null">#{pushTime},</if> |
| | | <if test="sourceSystemId != null">#{sourceSystemId},</if> |
| | | |
| | | </trim> |
| | | </insert> |
| | |
| | | <insert id="insertTmsApBillBatch" parameterType="java.util.List" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into tms_ap_bill |
| | | <trim prefix="(" suffix=") values" suffixOverrides=","> |
| | | system_no,bill_name,settle_amount,settle_rate,dispatch_count,settled_amount,invoice_status,status,create_by,create_time,update_by,update_time,deduction_amount,actual_settlement_amount,push_status,push_time, |
| | | system_no,bill_name,settle_amount,settle_rate,dispatch_count,settled_amount,invoice_status,status,create_by,create_time,update_by,update_time,deduction_amount,actual_settlement_amount,push_status,push_time,source_system_id, |
| | | </trim> |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | <trim prefix="(" suffix=") " suffixOverrides=","> |
| | | #{item.systemNo},#{item.billName},#{item.settleAmount},#{item.settleRate},#{item.dispatchCount},#{item.settledAmount},#{item.invoiceStatus},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.deductionAmount},#{item.actualSettlementAmount},#{item.pushStatus},#{item.pushTime}, |
| | | #{item.systemNo},#{item.billName},#{item.settleAmount},#{item.settleRate},#{item.dispatchCount},#{item.settledAmount},#{item.invoiceStatus},#{item.status},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.deductionAmount},#{item.actualSettlementAmount},#{item.pushStatus},#{item.pushTime},#{item.sourceSystemId}, |
| | | </trim> |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="serviceProviderType != null and serviceProviderType != ''">service_provider_type = #{serviceProviderType},</if> |
| | | <if test="pushStatus != null">push_status = #{pushStatus},</if> |
| | | <if test="pushTime != null">push_time = #{pushTime},</if> |
| | | <if test="sourceSystemId != null">source_system_id = #{sourceSystemId},</if> |
| | | |
| | | </trim> |
| | | where id = #{id} |
| | |
| | | <if test="item.serviceProviderType != null and item.serviceProviderType != ''">service_provider_type = #{item.serviceProviderType},</if> |
| | | <if test="item.pushStatus != null">push_status = #{item.pushStatus},</if> |
| | | <if test="item.pushTime != null">push_time = #{item.pushTime},</if> |
| | | <if test="item.sourceSystemId != null">source_system_id = #{item.sourceSystemId},</if> |
| | | |
| | | </trim> |
| | | where id = #{item.id} |