select thisTab.id, thisTab.system_no, thisTab.bill_relation_id, thisTab.bill_relation_no, thisTab.dispatch_id, thisTab.dispatch_no, thisTab.customer_id, thisTab.customer_name, thisTab.project_id, thisTab.project_name, thisTab.receivable_rmb_amount,thisTab.receivable_hkb_amount, thisTab.dispatch_confirm_time, thisTab.cost_generate_time, thisTab.status, thisTab.create_time, thisTab.create_by, thisTab.update_by, thisTab.update_time from tms_receivable_fee AS thisTab select count(0) from tms_receivable_fee as thisTab and thisTab.system_no = #{systemNo} and thisTab.bill_relation_id = #{billRelationId} and thisTab.bill_relation_no = #{billRelationNo} and thisTab.dispatch_id = #{dispatchId} and thisTab.dispatch_no = #{dispatchNo} and thisTab.customer_id = #{customerId} and thisTab.customer_name like concat('%', #{customerName}, '%') and thisTab.project_id = #{projectId} and thisTab.project_name like concat('%', #{projectName}, '%') and thisTab.receivable_rmb_amount = #{receivableRMBAmount} and thisTab.receivable_hkb_amount = #{receivableHKBAmount} and thisTab.dispatch_confirm_time = #{dispatchConfirmTime} and thisTab.cost_generate_time = #{costGenerateTime} and thisTab.status = #{status} insert into tms_receivable_fee system_no, bill_relation_id, bill_relation_no, dispatch_id, dispatch_no, customer_id, customer_name, project_id, project_name, receivable_rmb_amount, receivable_hkb_amount, dispatch_confirm_time, cost_generate_time, status, create_time, create_by, update_by, update_time, #{systemNo}, #{billRelationId}, #{billRelationNo}, #{dispatchId}, #{dispatchNo}, #{customerId}, #{customerName}, #{projectId}, #{projectName}, #{receivableRMBAmount}, #{receivableHKBAmount}, #{dispatchConfirmTime}, #{costGenerateTime}, #{status}, #{createTime}, #{createBy}, #{updateBy}, #{updateTime}, insert into tms_receivable_fee system_no,bill_relation_id,bill_relation_no,dispatch_id,dispatch_no,customer_id,customer_name,project_id,project_name,receivable_rmb_amount,receivable_hkb_amount,dispatch_confirm_time,cost_generate_time,status,create_by, #{item.systemNo},#{item.billRelationId},#{item.billRelationNo},#{item.dispatchId},#{item.dispatchNo},#{item.customerId},#{item.customerName},#{item.projectId},#{item.projectName},#{item.receivableRMBAmount},#{item.receivableHKBAmount},#{item.dispatchConfirmTime},#{item.costGenerateTime},#{item.status},#{item.createBy}, update tms_receivable_fee system_no = #{systemNo}, bill_relation_id = #{billRelationId}, bill_relation_no = #{billRelationNo}, dispatch_id = #{dispatchId}, dispatch_no = #{dispatchNo}, customer_id = #{customerId}, customer_name = #{customerName}, project_id = #{projectId}, project_name = #{projectName}, receivable_rmb_amount = #{receivableRMBAmount}, receivable_hkb_amount = #{receivableHKBAmount}, dispatch_confirm_time = #{dispatchConfirmTime}, cost_generate_time = #{costGenerateTime}, status = #{status}, create_time = #{createTime}, create_by = #{createBy}, update_by = #{updateBy}, update_time = #{updateTime}, where id = #{id} update tms_receivable_fee system_no = #{item.systemNo}, bill_relation_id = #{item.billRelationId}, bill_relation_no = #{item.billRelationNo}, dispatch_id = #{item.dispatchId}, dispatch_no = #{item.dispatchNo}, customer_id = #{item.customerId}, customer_name = #{item.customerName}, project_id = #{item.projectId}, project_name = #{item.projectName}, receivable_rmb_amount = #{item.receivableRMBAmount}, receivable_hkb_amount = #{item.receivableHKBAmount}, dispatch_confirm_time = #{item.dispatchConfirmTime}, cost_generate_time = #{item.costGenerateTime}, status = #{item.status}, create_time = #{item.createTime}, create_by = #{item.createBy}, update_by = #{item.updateBy}, update_time = #{item.updateTime}, where id = #{item.id} delete from tms_receivable_fee where id = #{id} delete from tms_receivable_fee where id in #{id}