select thisTab.id, thisTab.bill_id, thisTab.project_name, thisTab.dispatch_no, thisTab.order_time, thisTab.estimate_amount, thisTab.currency, thisTab.ar_fee_id, thisTab.status, thisTab.create_time from tms_ar_bill_item AS thisTab
select count(0) from tms_ar_bill_item as thisTab
and thisTab.bill_id = #{billId} and thisTab.project_name like concat('%', #{projectName}, '%') and thisTab.dispatch_no = #{dispatchNo} and thisTab.order_time = #{orderTime} and thisTab.estimate_amount = #{estimateAmount} and thisTab.currency = #{currency} and thisTab.ar_fee_id = #{arFeeId} and thisTab.status = #{status}
insert into tms_ar_bill_item
bill_id,project_name,dispatch_no,order_time,estimate_amount,currency,ar_fee_id,status,create_time,#{billId},#{projectName},#{dispatchNo},#{orderTime},#{estimateAmount},#{currency},#{arFeeId},#{status},#{createTime},
insert into tms_ar_bill_item
id,bill_id,project_name,dispatch_no,order_time,estimate_amount,currency,ar_fee_id,status,create_time,
#{item.id},#{item.billId},#{item.projectName},#{item.dispatchNo},#{item.orderTime},#{item.estimateAmount},#{item.currency},#{item.arFeeId},#{item.status},#{item.createTime},
update tms_ar_bill_item
bill_id = #{billId},project_name = #{projectName},dispatch_no = #{dispatchNo},order_time = #{orderTime},estimate_amount = #{estimateAmount},currency = #{currency},ar_fee_id = #{arFeeId},status = #{status},create_time = #{createTime},
where id = #{id}
update tms_ar_bill_item
bill_id = #{item.billId},project_name = #{item.projectName},dispatch_no = #{item.dispatchNo},order_time = #{item.orderTime},estimate_amount = #{item.estimateAmount},currency = #{item.currency},ar_fee_id = #{item.arFeeId},status = #{item.status},create_time = #{item.createTime},
where id = #{item.id}
delete from tms_ar_bill_item where id = #{id}
delete from tms_ar_bill_item where id in
#{id}