select t.id, t.station_id, s.station_name, t.channel_name, t.protocol, t.host, t.port, t.collect_interval, t.data_type, t.status, t.last_sync_time, t.create_by, t.create_time, t.update_by, t.update_time, t.remark from config_station_channel t left join config_station s on s.id = t.station_id insert into config_station_channel (station_id, channel_name, protocol, host, port, collect_interval, data_type, status, last_sync_time, create_by, create_time, update_by, update_time, remark) values (#{stationId}, #{channelName}, #{protocol}, #{host}, #{port}, #{collectInterval}, #{dataType}, #{status}, #{lastSyncTime}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}) update config_station_channel station_id = #{stationId}, channel_name = #{channelName}, protocol = #{protocol}, host = #{host}, port = #{port}, collect_interval = #{collectInterval}, data_type = #{dataType}, status = #{status}, last_sync_time = #{lastSyncTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id} delete from config_station_channel where id = #{id} delete from config_station_channel where id in #{id}