|
|
|
|
@ -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);//删除原本的任务
|
|
|
|
|
|