소스 검색

日计划调整

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

+ 1 - 1
MicroServices/Business/Business.Application/ResourceExamineManagement/ProductionScheduleAppService.cs

@@ -474,7 +474,7 @@ namespace Business.ResourceExamineManagement
             {
             {
                 item.UDeci5 = item.OrdQty.GetValueOrDefault();
                 item.UDeci5 = item.OrdQty.GetValueOrDefault();
                 //获取历史排产数据
                 //获取历史排产数据
-                var curDtl = dbPeriodSequences.FirstOrDefault(p => p.Op == item.Op && p.WorkOrds == item.WorkOrds && p.Line == item.Line && p.PlanDate == item.PlanDate && p.PlanDate == scheTime.Date);
+                var curDtl = dbPeriodSequences.FirstOrDefault(p =>p.OrdQty > 0 && p.Op == item.Op && p.WorkOrds == item.WorkOrds && p.Line == item.Line && p.PlanDate == item.PlanDate && p.PlanDate == scheTime.Date);
                 item.OrdQty = curDtl == null ? item.OrdQty : curDtl.OrdQty;
                 item.OrdQty = curDtl == null ? item.OrdQty : curDtl.OrdQty;
                 //未来三天的日计划(工单下达,且前处理完成)状态设为r
                 //未来三天的日计划(工单下达,且前处理完成)状态设为r
                 if (item.PlanDate >= beginDate && item.PlanDate <= endDate && workordList.Exists(p => p.WorkOrd == item.WorkOrds))
                 if (item.PlanDate >= beginDate && item.PlanDate <= endDate && workordList.Exists(p => p.WorkOrd == item.WorkOrds))