|
@@ -162,9 +162,6 @@ namespace WCS.Service.Extensions
|
|
|
throw new Exception(LogHelper.SpliceLogMessage($"等待任务[{Data2.Tasknum}]执行", Entity.CODE, WCS_EXCEPTIONTYPE.逻辑异常, GetType()));
|
|
|
//没有光电
|
|
|
if (!Data2.Status.HasFlag(IstationStatus.光电状态)) return true;
|
|
|
- //没有请求
|
|
|
- if (type != IstationRequest.无 && Data2.Request != type)
|
|
|
- throw new Exception(LogHelper.SpliceLogMessage($"有光电有任务无 {type}", Entity.CODE, WCS_EXCEPTIONTYPE.设备异常, GetType()));
|
|
|
//没有任务号
|
|
|
switch (type)
|
|
|
{
|
|
@@ -188,6 +185,9 @@ namespace WCS.Service.Extensions
|
|
|
throw new Exception(LogHelper.SpliceLogMessage($"设备无任务信息", Entity.CODE, WCS_EXCEPTIONTYPE.逻辑异常, GetType()));
|
|
|
break;
|
|
|
}
|
|
|
+ //没有请求
|
|
|
+ if (type != IstationRequest.无 && Data2.Request != type)
|
|
|
+ throw new Exception(LogHelper.SpliceLogMessage($"有光电无 {type} 请求", Entity.CODE, WCS_EXCEPTIONTYPE.设备异常, GetType()));
|
|
|
|
|
|
return false;
|
|
|
}
|