三跨管理

This commit is contained in:
马三炮 2025-04-27 14:04:01 +08:00
parent 64c58e6618
commit ae3be4aff1
3 changed files with 15 additions and 4 deletions

View File

@ -40,7 +40,7 @@ public class TbProjectVo {
/**
* 电压等级电压等级
*/
@Excel(name = "电压等级", sort = 3, readConverterExp = "1=110KV,2=220KV")
@Excel(name = "电压等级", sort = 3)
private String voltageLevel;
/**
@ -84,7 +84,7 @@ public class TbProjectVo {
/**
* 工程状态字典表配置
*/
@Excel(name = "工程状态", sort = 8, readConverterExp = "1=在建,2=完工,3=筹建,4=停工,5=收尾")
@Excel(name = "工程状态", sort = 8)
private String proStatus;
/**

View File

@ -31,11 +31,21 @@ public class TbThreeSpanVo {
*/
private Long towerId;
/**
* 开始杆塔名称
*/
private String towerName;
/**
* 结束杆塔id
*/
private Long nextTowerId;
/**
* 结束杆塔名称
*/
private String nextTowerName;
/**
* 上层线路
*/

View File

@ -64,13 +64,14 @@
<select id="getTbThreeSpanList" resultType="com.bonus.digitalSignage.basic.vo.TbThreeSpanVo">
select tts.id as id,tts.pro_id as proId,tts.span_type as spanType,tts.tower_id as towerId,tts.next_tower_id as nextTowerId,
select tts.id as id,tts.pro_id as proId,tts.span_type as spanType,tts.tower_id as towerId,
tt.tower_name as towerName, tts.next_tower_id as nextTowerId,tt2.tower_name as nextTowerName,
tts.upper_line as upperLine,tts.lower_line as lowerLine,tts.intersection_angle as intersectionAngle,
tts.vertical_distance as verticalDistance,tts.safety_margin as safetyMargin,tts.vertical_clear_distance as verticalClearDistance,
tts.tower_spacing as towerSpacing,tts.highway_width as highwayWidth
from tb_three_span tts
left join tb_tower tt on tts.tower_id = tt.id
left join tb_tower tt2 on tts.tower_id = tt.id
left join tb_tower tt2 on tts.next_tower_id = tt.id
where tts.pro_id = #{proId} and tts.is_active = '1'
<if test="keyWord != '' and keyWord != null">
and (tt.tower_name like concat('%',#{keyWord},'%') or