Commit c33bd4ed authored by hkl's avatar hkl

feat:1.更新线路管理

parent edb54975
...@@ -23,4 +23,14 @@ public class CurveManagementDTO implements Serializable { ...@@ -23,4 +23,14 @@ public class CurveManagementDTO implements Serializable {
@ApiModelProperty("曲线编号") @ApiModelProperty("曲线编号")
private String curveCode; private String curveCode;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -12,4 +12,14 @@ public class FastenerManagementDTO { ...@@ -12,4 +12,14 @@ public class FastenerManagementDTO {
@ApiModelProperty("扣件编号") @ApiModelProperty("扣件编号")
private String fastenerCode; private String fastenerCode;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
package org.jeecg.modules.deviceAsset.dto; package org.jeecg.modules.deviceAsset.dto;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -23,8 +24,13 @@ public class RailManagementDTO implements Serializable { ...@@ -23,8 +24,13 @@ public class RailManagementDTO implements Serializable {
@ApiModelProperty("钢轨编码") @ApiModelProperty("钢轨编码")
private Integer railCode; private Integer railCode;
@ApiModelProperty("备注") @ApiModelProperty("线路id")
private String remark; private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -24,8 +24,16 @@ import java.util.Date; ...@@ -24,8 +24,16 @@ import java.util.Date;
@ApiModel(value = "SignBoardManagementDTO对象", description = "资产管理-轨行区标识牌管理") @ApiModel(value = "SignBoardManagementDTO对象", description = "资产管理-轨行区标识牌管理")
public class SignBoardManagementDTO implements Serializable { public class SignBoardManagementDTO implements Serializable {
private static final long serialVersionUID = 1L;
@ApiModelProperty("轨行区标识牌编号") @ApiModelProperty("轨行区标识牌编号")
private String signBoardCode; private String signBoardCode;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -31,4 +31,14 @@ public class SleeperManagementDTO implements Serializable { ...@@ -31,4 +31,14 @@ public class SleeperManagementDTO implements Serializable {
@ApiModelProperty("道床id") @ApiModelProperty("道床id")
private String trackBedId; private String trackBedId;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -8,7 +8,17 @@ import lombok.Data; ...@@ -8,7 +8,17 @@ import lombok.Data;
@ApiModel(value = "资产管理-道岔管理DTO") @ApiModel(value = "资产管理-道岔管理DTO")
public class SwitchManagementQueryDTO { public class SwitchManagementQueryDTO {
@ApiModelProperty(value = "线路name") @ApiModelProperty(value = "道岔编码")
private String railLineName; private String switchCode;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -31,5 +31,14 @@ public class TrackBedManagementDTO implements Serializable { ...@@ -31,5 +31,14 @@ public class TrackBedManagementDTO implements Serializable {
@ApiModelProperty("道床编号") @ApiModelProperty("道床编号")
private String trackBedCode; private String trackBedCode;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -31,4 +31,14 @@ public class VerticalCurveManagementDTO implements Serializable { ...@@ -31,4 +31,14 @@ public class VerticalCurveManagementDTO implements Serializable {
@ApiModelProperty("竖曲线编号") @ApiModelProperty("竖曲线编号")
private String verticalCurveCode; private String verticalCurveCode;
@ApiModelProperty("线路id")
private String lightRailId;
@ApiModelProperty("区间id")
private String sectionId;
@ApiModelProperty("线别id")
private String lineAliasId;
} }
...@@ -17,6 +17,15 @@ ...@@ -17,6 +17,15 @@
<if test="dto.curveCode != null and dto.curveCode != ''"> <if test="dto.curveCode != null and dto.curveCode != ''">
AND t1.curve_code like concat('%',#{dto.curveCode},'%') AND t1.curve_code like concat('%',#{dto.curveCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
<if test="dto.fastenerCode != null and dto.fastenerCode != ''"> <if test="dto.fastenerCode != null and dto.fastenerCode != ''">
AND t1.fastener_code like concat('%',#{dto.fastenerCode},'%') AND t1.fastener_code like concat('%',#{dto.fastenerCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -16,6 +16,15 @@ ...@@ -16,6 +16,15 @@
<if test="dto.railCode != null and dto.railCode != ''"> <if test="dto.railCode != null and dto.railCode != ''">
AND t1.rail_code like concat('%',#{dto.railCode},'%') AND t1.rail_code like concat('%',#{dto.railCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -16,6 +16,15 @@ ...@@ -16,6 +16,15 @@
<if test="dto.signBoardCode != null and dto.signBoardCode != ''"> <if test="dto.signBoardCode != null and dto.signBoardCode != ''">
AND t1.sign_board_code like concat('%',#{dto.signBoardCode},'%') AND t1.sign_board_code like concat('%',#{dto.signBoardCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -21,6 +21,15 @@ ...@@ -21,6 +21,15 @@
<if test="dto.sleeperCode != null and dto.sleeperCode != ''"> <if test="dto.sleeperCode != null and dto.sleeperCode != ''">
AND t1.sleeper_code like concat('%',#{dto.sleeperCode},'%') AND t1.sleeper_code like concat('%',#{dto.sleeperCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -17,6 +17,19 @@ ...@@ -17,6 +17,19 @@
FROM FROM
t_da_switch_management t1 LEFT JOIN t_sn_section_station_map t2 ON t1.section_station_map_id = t2.id t_da_switch_management t1 LEFT JOIN t_sn_section_station_map t2 ON t1.section_station_map_id = t2.id
LEFT JOIN t_sn_line_alias t3 ON t1.line_alias_id = t3.id LEFT JOIN t_sn_line_alias t3 ON t1.line_alias_id = t3.id
<where>
<if test="dto.switchCode != null and dto.switchCode != ''">
AND t1.switch_code like concat('%',#{dto.switchCode},'%')
</if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t3.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where>
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -16,6 +16,15 @@ ...@@ -16,6 +16,15 @@
<if test="dto.trackBedCode != null and dto.trackBedCode != ''"> <if test="dto.trackBedCode != null and dto.trackBedCode != ''">
AND t1.track_bed_code like concat('%',#{dto.trackBedCode},'%') AND t1.track_bed_code like concat('%',#{dto.trackBedCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -16,6 +16,15 @@ ...@@ -16,6 +16,15 @@
<if test="dto.verticalCurveCode != null and dto.verticalCurveCode != ''"> <if test="dto.verticalCurveCode != null and dto.verticalCurveCode != ''">
AND t1.vertical_curve_code like concat('%',#{dto.verticalCurveCode},'%') AND t1.vertical_curve_code like concat('%',#{dto.verticalCurveCode},'%')
</if> </if>
<if test="dto.sectionId != null and dto.sectionId != ''">
AND t1.section_id = #{dto.sectionId}
</if>
<if test="dto.lightRailId != null and dto.lightRailId != ''">
AND t2.light_rail_id = #{dto.lightRailId}
</if>
<if test="dto.lineAliasId != null and dto.lineAliasId != ''">
AND t1.line_alias_id = #{dto.lineAliasId}
</if>
</where> </where>
</select> </select>
</mapper> </mapper>
...@@ -91,6 +91,7 @@ public class SubwaySectionController extends JeecgController<SubwaySection, ISub ...@@ -91,6 +91,7 @@ public class SubwaySectionController extends JeecgController<SubwaySection, ISub
map.put("label", subwaySection.getSectionName()); map.put("label", subwaySection.getSectionName());
map.put("value", subwaySection.getId()); map.put("value", subwaySection.getId());
map.put("parentId", subwaySection.getLightRailId()); map.put("parentId", subwaySection.getLightRailId());
map.put("lineAliasId",subwaySection.getLineAliasId());
list.add(map); list.add(map);
} }
return Result.OK(list); return Result.OK(list);
......
...@@ -32,12 +32,15 @@ ...@@ -32,12 +32,15 @@
id, id,
light_rail_id, light_rail_id,
light_rail_name, light_rail_name,
section_name , section_name,
section_id , section_id,
station_id, station_id,
station_name station_name,
station_line_alias_id line_alias_id,
( SELECT line_alias_name FROM t_sn_line_alias WHERE id = station_line_alias_id LIMIT 1 ) line_alias_name
FROM FROM
t_sn_section_station_map t_sn_section_station_map
</select> </select>
</mapper> </mapper>
\ No newline at end of file
...@@ -26,4 +26,10 @@ public class SectionStationMapVO { ...@@ -26,4 +26,10 @@ public class SectionStationMapVO {
@ApiModelProperty(value = "车站名称") @ApiModelProperty(value = "车站名称")
private String stationName; private String stationName;
@ApiModelProperty(value = "线别id")
private String lineAliasId;
@ApiModelProperty(value = "线别名称")
private String lineAliasName;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment