1693994901 2 giorni fa
parent
commit
32b571ae70
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      wms.service/Service/CPService.cs

+ 2 - 2
wms.service/Service/CPService.cs

@@ -5428,7 +5428,7 @@ namespace wms.service.Service
 
             if (sysconfig != null && !string.IsNullOrEmpty(sysconfig.Default3))
             {
-                hour = Convert.ToInt16(sysconfig.Default1);
+                hour = Convert.ToInt16(sysconfig.Default3);
             }
 
             if (!ShouldTriggerScaleTask(config, hour))
@@ -5445,7 +5445,7 @@ namespace wms.service.Service
             DateTime startTime = new DateTime(now.Year, now.Month, now.Day, hour, 0, 0);
             // 当天 10:59 结束
             DateTime endTime = new DateTime(now.Year, now.Month, now.Day, hour, 59, 59);
-            if (_wcstaskinfo.IsAny(p => p.AddrTo == deviceId && p.AddTime > startTime && p.AddTime < endTime && p.BusType == CpTaskBusType.TaskBusType_CP_WeightOut.GetDescription()))
+            if (_wcstaskinfo.IsAny(p => p.AddTime > startTime && p.AddTime < endTime && p.BusType == CpTaskBusType.TaskBusType_CP_WeightOut.GetDescription()))
             {
                 result.ResCode = ResponseStatusCodeEnum.EquipInfoNotExist.GetHashCode();
                 result.ResMsg = "本周期内已执行过";