Commit 1fd2f444 authored by hanbing's avatar hanbing

[update] 统一信控-方案管理,优化行人相位

parent c7962d76
......@@ -353,15 +353,18 @@ public class SchemeConfigServiceImpl implements SchemeConfigService {
// Integer laneDir = CrossLisghtsLaneDirEnum.getLaneDirByLightsDir(dir);
dirListElement.setDir(dir);
// 是否有行人相位
List<BaseCrossLightsPO> crossLightsPOList = baseCrossLightsMapper.selectByCrossIdAndDir(crossId, dir);
for (BaseCrossLightsPO crossLightsPO : crossLightsPOList) {
Integer type = crossLightsPO.getType();
List<CrossPhaseLightsPO> crossPhaseLightsPOList1 = baseCrossPhaseLightsMapper.selectByPhaseId(phaseId);
for (CrossPhaseLightsPO crossPhaseLightsPO : crossPhaseLightsPOList1) {
Integer lightsId = crossPhaseLightsPO.getLightsId();
BaseCrossLightsPO baseCrossLightsPO = baseCrossLightsMapper.selectById(lightsId);
Integer type = baseCrossLightsPO.getType();
if (type >= 20 && type < 30) {
Integer lightsId = crossLightsPO.getId();
if (hasLightsId(lightsId, phaseId, crossId)) {
dirListElement.setHasPersonPhase(1);
}
}
List<BaseCrossLightsPO> crossLightsPOList = baseCrossLightsMapper.selectByCrossIdAndDir(crossId, dir);
for (BaseCrossLightsPO crossLightsPO : crossLightsPOList) {
Integer type = crossLightsPO.getType();
}
// 构造车道列表
List<SaveSchemeConfigDTO.LaneListElement> laneList = buildLaneList(dir, phaseId);
......
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