解决问题:同步agv位置时 地图位置有别名时更新失败
This commit is contained in:
@ -26,7 +26,7 @@ namespace WCS.BLL.Manager
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
|
||||
|
||||
//每5秒同步一次
|
||||
Thread.Sleep(3000);
|
||||
try
|
||||
@ -105,7 +105,7 @@ namespace WCS.BLL.Manager
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@ -134,7 +134,7 @@ namespace WCS.BLL.Manager
|
||||
.Select(t => new
|
||||
{
|
||||
ShelfCode = t.podCode,
|
||||
LocationCode = t.positionCode,
|
||||
LocationCode = t.positionCode.Contains("XY") ? t.positionCode : t.mapDataCode,
|
||||
})
|
||||
.Distinct()
|
||||
.ToList();
|
||||
@ -153,11 +153,14 @@ namespace WCS.BLL.Manager
|
||||
|
||||
foreach (var shelf in shelfs)
|
||||
{
|
||||
//if (shelf.ShelfCode == "600132")
|
||||
// ;
|
||||
var currentLocationId = shelf.CurrentLocationId;
|
||||
|
||||
//RCS中有货架储位信息
|
||||
if (shelfCodesInRcs.Contains(shelf.ShelfCode))
|
||||
{
|
||||
//var data1 = result.data.Where(t => t.podCode == "600132").First();
|
||||
var rcsData = rcsDatas.Where(t => t.ShelfCode == shelf.ShelfCode).FirstOrDefault();
|
||||
if (rcsData == null)
|
||||
{
|
||||
@ -202,11 +205,11 @@ namespace WCS.BLL.Manager
|
||||
}
|
||||
Logs.Write($"【定时任务】定时同步货架绑定情况,更新0个货架", LogsType.Tasks);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Logs.Write("【定时任务】定时同步货架绑定情况异常:" + ex.Message,LogsType.Tasks);
|
||||
Logs.Write("【定时任务】定时同步货架绑定情况异常:" + ex.Message, LogsType.Tasks);
|
||||
}
|
||||
Logs.Write("【定时任务】定时同步货架绑定情况,结束", LogsType.Tasks);
|
||||
//每60秒同步一次
|
||||
|
Reference in New Issue
Block a user