林豪 左 3 yıl önce
ebeveyn
işleme
cbf216943c

+ 2 - 2
Projects/永冠OPP/WCS.Service/Extensions/DeviceExtension.cs

@@ -171,7 +171,7 @@ namespace WCS.Service.Extensions
                     break;
 
                 case IstationRequest.扫码入库:
-                    if (Data2.Tasknum < 10000 && Data.Tasknum < 10000)
+                    if (Data2.Tasknum > 10000 && Data.Tasknum > 10000)
                         throw new Exception(LogHelper.SpliceLogMessage($"设备已有任务任务", Entity.CODE, WCS_EXCEPTIONTYPE.逻辑异常, GetType()));
                     break;
 
@@ -187,7 +187,7 @@ namespace WCS.Service.Extensions
             }
             //没有请求
             if (type != IstationRequest.无 && Data2.Request != type)
-                throw new Exception(LogHelper.SpliceLogMessage($"有光电无 {type} 请求", Entity.CODE, WCS_EXCEPTIONTYPE.设备异常, GetType()));
+                throw new Exception(LogHelper.SpliceLogMessage($"有光电无{type}请求", Entity.CODE, WCS_EXCEPTIONTYPE.设备异常, GetType()));
 
             return false;
         }