Murphy 2 лет назад
Родитель
Сommit
13daa5fa18

+ 2 - 2
MicroServices/Business/Business.Application/ResourceExamineManagement/CalcBomViewAppService.cs

@@ -688,7 +688,7 @@ namespace Business.ResourceExamineManagement
                 {
                     var ic_item = icitemlist.Find(s => s.mysql_id == item.item_id);
                     List<mo_mes_mooccupy> mooccupylist = new List<mo_mes_mooccupy>();
-                    if (param.checkflag)
+                    if (param.checkflag || param.checkPlan)
                     {
                         mooccupylist = _morderAppService.CheckMorder(item.item_number, item.lack_qty, plan_date.GetValueOrDefault(), sentrys, ic_item, bangid);
                     }  
@@ -1212,7 +1212,7 @@ namespace Business.ResourceExamineManagement
                         {
                             var ic_item = icitemlist.Find(s => s.mysql_id == sct.item_id);
                             List<mo_mes_mooccupy> mooccupylist = new List<mo_mes_mooccupy>();
-                            if (param.checkflag)
+                            if (param.checkflag || param.checkPlan)
                             {
                                 mooccupylist = _morderAppService.CheckMorder(sct.item_number, sct.lack_qty, dateTime, sentrys, ic_item, bangid);
                             }