Commit 79f9215c authored by duanruiming's avatar duanruiming

[update] 行人灯位置优化

parent 3723380e
...@@ -333,11 +333,10 @@ public class CrossConfigServiceImpl implements CrossConfigService { ...@@ -333,11 +333,10 @@ public class CrossConfigServiceImpl implements CrossConfigService {
ledConfigListElement.setSignalType(7); ledConfigListElement.setSignalType(7);
} }
// 灯组放行方向 转化为灯组方向 // 灯组放行方向 转化为灯组方向
Integer laneDir = crossLightsPO.getDir(); Integer dir = crossLightsPO.getDir();
Integer dir = null;
if (type < 20 || type >= 30) { // 非行人灯 if (type < 20 || type >= 30) { // 非行人灯
dir = CrossLisghtsLaneDirEnum.getLightsDirByLaneDir(laneDir); Integer laneDir = CrossLisghtsLaneDirEnum.getLightsDirByLaneDir(dir);
String address = LightsAddressEnum.getMsgByCode(dir); String address = LightsAddressEnum.getMsgByCode(laneDir);
ledConfigListElement.setAddress(address); ledConfigListElement.setAddress(address);
} else if (type == 20) { // 一次过街 } else if (type == 20) { // 一次过街
String s = "" + dir + 1; String s = "" + dir + 1;
......
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