Commit c53cecf9 authored by hanbing's avatar hanbing

方案管理-渠化配置,兼容未配置车道的方向

parent 24068f46
......@@ -16,7 +16,7 @@ public interface LaneInfoMapper {
void deleteByCrossIdAndDir(@Param("crossId") String crossId, @Param("dir") Integer dir);
void insertBatch(@Param("entities") List<LaneInfoPO> laneInfoPOListForInsert);
void insertBatch(@Param("entities") List<LaneInfoPO> entities);
List<LaneInfoPO> selectBycrossId(@Param("crossId") String crossId);
......
......@@ -291,7 +291,9 @@ public class CrossConfigServiceImpl implements CrossConfigService {
// 插入进口信息
List<LaneInfoPO> laneInfoPOListForInsert = getLaneInfoPOListForInsert(
crossId, dirListElement, dir, laneListFromClient);
if (laneInfoPOListForInsert.size() > 0) {
laneInfoMapper.insertBatch(laneInfoPOListForInsert);
}
// 插入路口方向
CrossDirInfoPO crossDirInfoPO = getCrossDirInfoPO(crossId, dirListElement);
crossDirInfoMapper.insertOne(crossDirInfoPO);
......
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