wms 消除warning
This commit is contained in:
@@ -25,9 +25,6 @@ namespace Tnb.WarehouseMgr
|
||||
/// <summary>
|
||||
/// 动态规划函数
|
||||
/// </summary>
|
||||
/// <param name="roads"></param>
|
||||
/// <param name="sPointId"></param>
|
||||
/// <param name="ePointId"></param>
|
||||
/// <returns></returns>
|
||||
public void DpFunc(List<WmsRoad> roads, List<string> pointIds, Dictionary<string, bool> isVisited, string sPointId, string ePointId, dynamic ArrivedEpoint)
|
||||
{
|
||||
@@ -37,7 +34,7 @@ namespace Tnb.WarehouseMgr
|
||||
if (!isVisited[sPointId])
|
||||
{
|
||||
pointIds.Add(sPointId);
|
||||
set.Add(roads.Find(x => x.startpoint_id == sPointId).startpoint_code);
|
||||
set.Add(roads?.Find(x => x.startpoint_id == sPointId)?.startpoint_code!);
|
||||
isVisited[sPointId] = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user