소스 검색

Merge branch 'dev' of http://123.60.180.165:4647/ZZYDOP/DOPCore into dev

heteng 2 년 전
부모
커밋
6aeef06bc5
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      MicroServices/Business/Business.Application/ReplenishmentManagement/ReplenishmentAppService.cs

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

@@ -4417,8 +4417,8 @@ namespace Business.Replenishment
                 long factoryid=Convert.ToInt64(factory_id);
                 long companyid=Convert.ToInt64(company_id);
                 var weekPlan=_replenishmentWeekPlan.FindAsync(a => a.Id == id && a.tenant_id == tenantid && a.factory_id == factoryid && a.company_id == companyid).Result;
-                var isExistSamePriority= _replenishmentWeekPlan.FindAsync(a => a.Id != id && a.Week == weekPlan.Week && a.Priority == newpriority).Result;
-                if(isExistSamePriority!=null)
+                var isExistSamePriority = _replenishmentWeekPlan.GetListAsync(a => a.Id != id && a.Week == weekPlan.Week && a.Priority == newpriority).Result;
+                if(isExistSamePriority.Any())
                     return "优先级重复,请重新调整。";
 
                 weekPlan.Priority= newpriority;