select scw.channel_id, scw.name, scw.account_type, scw.service_type, scw.service_rate, scw.enabled, scw.cost_rate, scw.picture, scw.min_amount, scw.max_amount from rl_channel_withdraw scw and scw.channel_id = #{query.channelId} and scw.name like concat('%', #{query.name}, '%') and scw.account_type = #{query.accountType} and scw.service_type = #{query.serviceType} and scw.enabled = #{query.enabled} and scw.account_type in #{item} insert into rl_channel_withdraw name, account_type, service_type, service_rate, enabled, cost_rate, picture, min_amount, max_amount, #{name}, #{accountType}, #{serviceType}, #{serviceRate}, #{enabled}, #{costRate}, #{picture}, #{minAmount}, #{maxAmount}, update rl_channel_withdraw name = #{data.name}, account_type = #{data.accountType}, service_type = #{data.serviceType}, service_rate = #{data.serviceRate}, enabled = #{data.enabled}, cost_rate = #{data.costRate}, picture = #{data.picture}, min_amount = #{data.minAmount}, max_amount = #{data.maxAmount}, where channel_id = #{data.channelId} delete from rl_channel_withdraw where channel_id = #{channelId} delete from rl_channel_withdraw where channel_id in #{channelId}