master
liuwf 1 year ago
parent 03a79ced11
commit 35d2c077a1

@ -90,7 +90,7 @@ namespace Khd.Core.Wcs.Wcs
}
if (wcsTask.taskType != 99)//不是人工任务
{
bool hasTask = dbContext.WcsTask.Where(t => t.endPointId == inEquip.objid).Any();
bool hasTask = dbContext.WcsTask.Where(t => t.endPointId == inEquip.objid && t.objid != wcsTask.objid).Any();
if (agvPutValue != null && Convert.ToInt32(agvPutValue) == 1 && !hasTask && Convert.ToInt32(PalletInIsHas2F) == 0 && Convert.ToInt32(ConnectStatus2F) == 1)//小包入口要料
{
dbContext.Remove(wcsTask);//删除原本的任务

Loading…
Cancel
Save