索道优化

This commit is contained in:
马三炮 2025-07-28 11:06:28 +08:00
parent f0f4ac8bd7
commit 6a2d663c68
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@
select tct.id as id,tct.pro_id as proId,tct.tower_id as towerId,tct.cableway_length as cablewayLength, select tct.id as id,tct.pro_id as proId,tct.tower_id as towerId,tct.cableway_length as cablewayLength,
tct.max_height as maxHeight,tct.safety_distance as safetyDistance,tct.max_slope as maxSlope, tct.max_height as maxHeight,tct.safety_distance as safetyDistance,tct.max_slope as maxSlope,
tct.create_user_id as createUserId,tt.tower_name as towerName,tct.cableway_width AS cablewayWidth, tct.create_user_id as createUserId,tt.tower_name as towerName,tct.cableway_width AS cablewayWidth,
tct.source_type as sourceType,tct.name as name tct.source_type as sourceType,COALESCE(tct.name, tt.tower_name) AS towerName
from tb_cablewa_trans tct from tb_cablewa_trans tct
left join tb_tower tt on tct.tower_id = tt.id left join tb_tower tt on tct.tower_id = tt.id
where tct.pro_id = #{proId} and tct.is_active = '1' where tct.pro_id = #{proId} and tct.is_active = '1'
@ -86,7 +86,7 @@
select tct.id as id,tct.pro_id as proId,tct.tower_id as towerId,tct.cableway_length as cablewayLength, select tct.id as id,tct.pro_id as proId,tct.tower_id as towerId,tct.cableway_length as cablewayLength,
tct.max_height as maxHeight,tct.safety_distance as safetyDistance,tct.max_slope as maxSlope, tct.max_height as maxHeight,tct.safety_distance as safetyDistance,tct.max_slope as maxSlope,
tct.create_user_id as createUserId,tt.tower_name as towerName,tct.cableway_width AS cablewayWidth, tct.create_user_id as createUserId,tt.tower_name as towerName,tct.cableway_width AS cablewayWidth,
tct.source_type as sourceType,tct.name as name tct.source_type as sourceType,COALESCE(tct.name, tt.tower_name) AS towerName
from tb_cablewa_trans tct from tb_cablewa_trans tct
left join tb_tower tt on tct.tower_id = tt.id left join tb_tower tt on tct.tower_id = tt.id
where tct.id = #{id} where tct.id = #{id}