select id, name, config_channel_id, ilk, config_device_id, remark from config_device d select d.id, d.name, d.config_channel_id, d.ilk, d.config_device_id, d.remark, c.name config_channel_name from config_device d LEFT JOIN config_channel c on d.config_channel_id = c.id insert into config_device name, config_channel_id, ilk, config_device_id, remark, #{name}, #{configChannelId}, #{ilk}, #{configDeviceId}, #{remark}, update config_device name = #{name}, config_channel_id = #{configChannelId}, ilk = #{ilk}, config_device_id = #{configDeviceId}, remark = #{remark}, where id = #{id} delete from config_device where id = #{id} delete from config_device where id in #{id}