Commit bd10cb7f authored by duanruiming's avatar duanruiming

[update] 相位倒计时

parent 758920da
package net.wanji.web.service.scheme.impl; package net.wanji.web.service.scheme.impl;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil;
import net.wanji.common.dto.CrossIdDTO; import net.wanji.common.dto.CrossIdDTO;
import net.wanji.common.enums.LightsAddressEnum; import net.wanji.common.enums.LightsAddressEnum;
import net.wanji.databus.dao.mapper.*; import net.wanji.databus.dao.mapper.BaseCrossLaneLightsMapper;
import net.wanji.databus.dao.mapper.BaseCrossLightsMapper;
import net.wanji.databus.dao.mapper.BaseCrossPhaseLightsMapper;
import net.wanji.databus.dao.mapper.LaneInfoMapper;
import net.wanji.databus.po.BaseCrossLightsPO; import net.wanji.databus.po.BaseCrossLightsPO;
import net.wanji.databus.po.CrossLaneLightsPO; import net.wanji.databus.po.CrossLaneLightsPO;
import net.wanji.databus.po.LaneInfoPO; import net.wanji.databus.po.LaneInfoPO;
import net.wanji.web.common.enums.CrossLisghtsLaneDirEnum; import net.wanji.web.common.enums.CrossLisghtsLaneDirEnum;
import net.wanji.web.common.exception.LightLaneConflictException; import net.wanji.web.common.exception.LightLaneConflictException;
import net.wanji.web.common.exception.RidInfoException;
import net.wanji.web.dto.DirListElement; import net.wanji.web.dto.DirListElement;
import net.wanji.web.dto.LaneListElement; import net.wanji.web.dto.LaneListElement;
import net.wanji.web.dto.LedConfigListElement; import net.wanji.web.dto.LedConfigListElement;
...@@ -459,9 +460,9 @@ public class CrossConfigServiceImpl implements CrossConfigService { ...@@ -459,9 +460,9 @@ public class CrossConfigServiceImpl implements CrossConfigService {
int sort = Integer.parseInt(sortStr); int sort = Integer.parseInt(sortStr);
// 上一个路口ID // 上一个路口ID
String preId = laneInfoMapper.selectPreId(crossId, dir); String preId = laneInfoMapper.selectPreId(crossId, dir);
if (ObjectUtil.isEmpty(preId)) { // if (ObjectUtil.isEmpty(preId)) {
throw new RidInfoException("基础路网中无上一路口数据"); // throw new RidInfoException("基础路网中无上一路口数据");
} // }
// 0 主路;900 进口道渠化序号。信控车道类型都是进口车道 // 0 主路;900 进口道渠化序号。信控车道类型都是进口车道
laneInfoPO.setId(preId + crossId + 0 + 900 + sort); laneInfoPO.setId(preId + crossId + 0 + 900 + sort);
laneInfoPO.setCode(laneListElement.getName()); laneInfoPO.setCode(laneListElement.getName());
......
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