Browse Source

施工事件修改匝道

develop
lau572 4 months ago
parent
commit
8d2f44780c
  1. 1
      zc-business/src/main/java/com/zc/business/enums/ValueConverter.java
  2. 17
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java
  3. 1
      zc-business/src/main/resources/mapper/business/DcEventConstructionMapper.xml

1
zc-business/src/main/java/com/zc/business/enums/ValueConverter.java

@ -260,6 +260,7 @@ public class ValueConverter {
eventLabel.put("dcEventConstruction.localRoadName","地方道路名称");
eventLabel.put("dcEventConstruction.endStakeMark","结束桩号");
eventLabel.put("dcEventConstruction.location","地点");
eventLabel.put("dcEventConstruction.rampId","匝道");
eventLabel.put("dcEventServiceArea.exitsInlets","出入口");
eventLabel.put("dcEventServiceArea.facilityId","服务区");
eventLabel.put("dcEventServiceArea.disableFacility","停用设施");

17
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -1861,6 +1861,23 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
result.setRight(UniversalEnum.INNER_EXIT_PLAZA.getValue());
}
}
} else if ("dcEventServiceArea.disableFacility".equals(result.getRightPath())){
if (UniversalEnum.ONE.getValue().equals(result.getRight())) {
result.setRight("卫生间");
} else if (UniversalEnum.TWO.getValue().equals(result.getRight())) {
result.setRight("餐厅");
} else if (UniversalEnum.THREE.getValue().equals(result.getRight())) {
result.setRight("停车场");
} else if (UniversalEnum.FOUR.getValue().equals(result.getRight())) {
result.setRight("加油站");
} else if (UniversalEnum.FIVE.getValue().equals(result.getRight())) {
result.setRight("充电桩");
}
} else if ("dcEventConstruction.rampId".equals(result.getRightPath())){
DcRamp dcRamp = dcRampMapper.selectDcRampById(Long.valueOf(result.getRight().toString()));
if (dcRamp != null){
result.setRight(dcRamp.getRampName());
}
}
String label = ValueConverter.eventLabel(result.getRightPath());
if (StringUtils.isNotEmpty(label)) {

1
zc-business/src/main/resources/mapper/business/DcEventConstructionMapper.xml

@ -135,6 +135,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="localRoadName != null">local_road_name = #{localRoadName},</if>
<if test="location != null">location = #{location},</if>
<if test="constructionMethod != null">construction_method = #{constructionMethod},</if>
<if test="rampId != null">ramp_id = #{rampId},</if>
</trim>
where id = #{id}
</update>

Loading…
Cancel
Save