select id,
cloud_name,
file_name,
folder_name,
file_size,
associated_state,
route_id,
group_id,
create_by,
create_time,
update_by,
update_time,
file_path
from ard_point_cloud
SELECT
a.id,
a.cloud_name,
a.file_name,
a.folder_name,
a.file_size,
a.associated_state,
a.route_id,
a.group_id,
a.file_path,
c.id,
c.name
FROM ard_point_cloud a
LEFT JOIN ard_route_cloud b ON a.id = b.cloud_id
LEFT JOIN ard_route_info c ON b.route_id = c.id
insert into ard_point_cloud
id,
cloud_name,
file_name,
folder_name,
file_size,
associated_state,
route_id,
group_id,
create_by,
create_time,
update_by,
update_time,
file_path,
#{id},
#{cloudName},
#{fileName},
#{folderName},
#{fileSize},
#{associatedState},
#{routeId},
#{groupId},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{filePath},
update ard_point_cloud
cloud_name = #{cloudName},
file_name = #{fileName},
folder_name = #{folderName},
file_size = #{fileSize},
associated_state = #{associatedState},
route_id = #{routeId},
group_id = #{groupId},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
file_path = #{filePath},
where id = #{id}
delete from ard_point_cloud where id = #{id}
delete from ard_point_cloud where id in
#{id}