select t.id, t.station_id, s.station_name, t.device_name, t.device_type, t.brand, t.model, t.serial_number, t.status, t.install_date, t.create_by, t.create_time, t.update_by, t.update_time, t.remark from config_station_device t left join config_station s on s.id = t.station_id
insert into config_station_device (station_id, device_name, device_type, brand, model, serial_number, status, install_date, create_by, create_time, update_by, update_time, remark)
values (#{stationId}, #{deviceName}, #{deviceType}, #{brand}, #{model}, #{serialNumber}, #{status}, #{installDate}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark})
update config_station_device
station_id = #{stationId},
device_name = #{deviceName},
device_type = #{deviceType},
brand = #{brand},
model = #{model},
serial_number = #{serialNumber},
status = #{status},
install_date = #{installDate},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
delete from config_station_device where id = #{id}
delete from config_station_device where id in
#{id}