运行图问题修改

This commit is contained in:
DU 2021-03-15 13:07:32 +08:00
parent a2a8f1f296
commit 94b679893f

View File

@ -70,8 +70,8 @@ public class RunPlanRoutingService implements IRunPlanRoutingService {
RunPlanRoutingVO routingDataLoop = routingVO.getRoutingDataLoop();
generateUserRoutingSections(routingDataLoop, deviceMap);
if (routingDataExist(routingDataLoop)) return;
Section endSection = (Section) deviceMap.get(routingVO.getEndSectionCode());
routingVO.setDestinationCode(endSection.getDestinationCode());
Section endSection = (Section) deviceMap.get(routingDataLoop.getEndSectionCode());
routingDataLoop.setDestinationCode(endSection.getDestinationCode());
runPlanRoutingDAO.insert(routingDataLoop.convert2Entity());
createRoutingRefData(deviceMap, routingDataLoop);
}