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<BaseCrossLightsPO> crossLightsPOList = baseCrossLightsMapper.selectByCrossIdAndDir(crossId, dir); List<CrossPhaseLightsPO> crossPhaseLightsPOList1 = baseCrossPhaseLightsMapper.selectByPhaseId(phaseId);
for (BaseCrossLightsPO crossLightsPO : crossLightsPOList) { for (CrossPhaseLightsPO crossPhaseLightsPO : crossPhaseLightsPOList1) {
Integer type = crossLightsPO.getType(); Integer lightsId = crossPhaseLightsPO.getLightsId();
if (type >= 20 && type < 30) { BaseCrossLightsPO baseCrossLightsPO = baseCrossLightsMapper.selectById(lightsId);
Integer lightsId = crossLightsPO.getId(); Integer lightsDir = baseCrossLightsPO.getDir();
if (hasLightsId(lightsId, phaseId, crossId)) { Integer type = baseCrossLightsPO.getType();
if (type >= 20 && type < 30 && Objects.equals(lightsDir, dir)) {
dirListElement.setHasPersonPhase(1); 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); 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