Commit 2153be0a authored by duanruiming's avatar duanruiming

Merge remote-tracking branch 'origin/master'

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