select a.agent_id, a.name, a.service_phone, a.dispatch_fee, a.delivery_fee, a.city_id, a.contact, a.phone, a.userid, a.pay_channel, a.is_free_car,c.name cityName
from rl_agent a
left join rl_city c on c.city_id = a.city_id
insert into rl_agent
name,
service_phone,
dispatch_fee,
delivery_fee,
city_id,
contact,
phone,
userid,
pay_channel,
is_free_car,
#{name},
#{servicePhone},
#{dispatchFee},
#{deliveryFee},
#{cityId},
#{contact},
#{phone},
#{userid},
#{payChannel},
#{isFreeCar},
update rl_agent
name = #{name},
service_phone = #{servicePhone},
dispatch_fee = #{dispatchFee},
delivery_fee = #{deliveryFee},
city_id = #{cityId},
contact = #{contact},
phone = #{phone},
userid = #{userid},
pay_channel = #{payChannel},
is_free_car = #{isFreeCar},
where agent_id = #{agentId}
delete from rl_agent where agent_id = #{agentId}
delete from rl_agent where agent_id in
#{agentId}