select thisTab.id, thisTab.receivable_fee_id, thisTab.fee_type, thisTab.fee_name, thisTab.billing_unit, thisTab.unit_price, thisTab.billing_quantity, thisTab.billing_amount, thisTab.actual_amount, thisTab.currency, thisTab.fee_reg_time, thisTab.remark, thisTab.create_by, thisTab.create_time, thisTab.update_by, thisTab.update_time, thisTab.deleted from receivable_fee_detail AS thisTab select count(0) from receivable_fee_detail as thisTab and thisTab.receivable_fee_id = #{receivableFeeId} and thisTab.fee_type = #{feeType} and thisTab.fee_name like concat('%', #{feeName}, '%') and thisTab.billing_unit = #{billingUnit} and thisTab.unit_price = #{unitPrice} and thisTab.billing_quantity = #{billingQuantity} and thisTab.billing_amount = #{billingAmount} and thisTab.actual_amount = #{actualAmount} and thisTab.currency = #{currency} and thisTab.fee_reg_time = #{feeRegTime} and thisTab.deleted = #{deleted} insert into receivable_fee_detail receivable_fee_id, fee_type, fee_name, billing_unit, unit_price, billing_quantity, billing_amount, actual_amount, currency, fee_reg_time, remark, create_by, create_time, update_by, update_time, deleted, #{receivableFeeId}, #{feeType}, #{feeName}, #{billingUnit}, #{unitPrice}, #{billingQuantity}, #{billingAmount}, #{actualAmount}, #{currency}, #{feeRegTime}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{deleted}, insert into receivable_fee_detail receivable_fee_id,fee_type,fee_name,billing_unit,unit_price,billing_quantity,billing_amount,actual_amount,currency,fee_reg_time,remark,create_by,create_time,update_by,update_time,deleted, #{item.receivableFeeId},#{item.feeType},#{item.feeName},#{item.billingUnit},#{item.unitPrice},#{item.billingQuantity},#{item.billingAmount},#{item.actualAmount},#{item.currency},#{item.feeRegTime},#{item.remark},#{item.createBy},#{item.createTime},#{item.updateBy},#{item.updateTime},#{item.deleted}, update receivable_fee_detail receivable_fee_id = #{receivableFeeId}, fee_type = #{feeType}, fee_name = #{feeName}, billing_unit = #{billingUnit}, unit_price = #{unitPrice}, billing_quantity = #{billingQuantity}, billing_amount = #{billingAmount}, actual_amount = #{actualAmount}, currency = #{currency}, fee_reg_time = #{feeRegTime}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, deleted = #{deleted}, where id = #{id} update receivable_fee_detail receivable_fee_id = #{item.receivableFeeId}, fee_type = #{item.feeType}, fee_name = #{item.feeName}, billing_unit = #{item.billingUnit}, unit_price = #{item.unitPrice}, billing_quantity = #{item.billingQuantity}, billing_amount = #{item.billingAmount}, actual_amount = #{item.actualAmount}, currency = #{item.currency}, fee_reg_time = #{item.feeRegTime}, remark = #{item.remark}, create_by = #{item.createBy}, create_time = #{item.createTime}, update_by = #{item.updateBy}, update_time = #{item.updateTime}, deleted = #{item.deleted}, where id = #{item.id} delete from receivable_fee_detail where id = #{id} delete from receivable_fee_detail where receivable_fee_id = #{receivableFeeId} delete from receivable_fee_detail where id in #{id}