Commit 704ef9f5 authored by hanbing's avatar hanbing

方案管理-渠化配置,修复无方向进口回显

parent bdcab911
package net.wanji.web.service.scheme.impl;
import cn.hutool.core.collection.CollectionUtil;
import net.wanji.web.common.enums.CrossTurnEnum;
import net.wanji.web.common.enums.LightsAddressEnum;
import net.wanji.web.common.exception.LightLaneConflictException;
......@@ -287,7 +288,7 @@ public class CrossConfigServiceImpl implements CrossConfigService {
List<LaneListElement> laneListFromDb = buildLaneListFromDb(laneInfoPOList);
laneListFromDb.sort((x,y) -> String.CASE_INSENSITIVE_ORDER.compare(x.getName(), y.getName()));
// 比较入参数据与已有数据
if (!laneListFromClient.equals(laneListFromDb)) {
if (!laneListFromClient.equals(laneListFromDb) || CollectionUtil.isEmpty(laneListFromClient)) {
cleanDataBase(crossId, dir, laneInfoPOList);
// 插入进口信息
List<LaneInfoPO> laneInfoPOListForInsert = getLaneInfoPOListForInsert(
......
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