Murphy 2 лет назад
Родитель
Сommit
99c70228b8

+ 1 - 1
MicroServices/Business/Business.Application/ReplenishmentManagement/ReplenishmentAppService.cs

@@ -4427,7 +4427,7 @@ namespace Business.Replenishment
                 //周计划没有生成周工单的不校验优先级重复
                 if(weekPlan!=null && !string.IsNullOrEmpty(weekPlan.ProductionOrder))
                 {
-                    var isExistSamePriority = _workOrdMaster.Select(a => a.WorkOrd !=weekPlan.ProductionOrder && (string.IsNullOrEmpty(a.Status) || a.Status.ToUpper()=="P") && a.Priority == newpriority);
+                    var isExistSamePriority = _workOrdMaster.Select(a => a.WorkOrd !=weekPlan.ProductionOrder && (string.IsNullOrEmpty(a.Status) || a.Status.ToUpper()=="P") && (string.IsNullOrEmpty(a.Typed) || (!string.IsNullOrEmpty(a.Typed) && a.Typed.ToUpper() != "PW" && a.BusinessID > 0)) && a.Priority == newpriority);
                     if (isExistSamePriority.Any())
                         return "优先级重复,请重新调整。";
                 }