diff --git a/src/main/resources/mappers/basic/TbCablewaTransMapper.xml b/src/main/resources/mappers/basic/TbCablewaTransMapper.xml index a6dc483..fe31ab9 100644 --- a/src/main/resources/mappers/basic/TbCablewaTransMapper.xml +++ b/src/main/resources/mappers/basic/TbCablewaTransMapper.xml @@ -70,7 +70,7 @@ 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.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 left join tb_tower tt on tct.tower_id = tt.id 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, 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.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 left join tb_tower tt on tct.tower_id = tt.id where tct.id = #{id}