@@ -2705,7 +2705,7 @@ namespace Business.Replenishment
{
DateTime nextWeekMonday = getPreWeekStartTime().AddDays(14);
DateTime next2WeekMonday = getPreWeekStartTime().AddDays(28);
- var weekPlan = _replenishmentWeekPlan.GetListAsync(a => a.PlanStartDate >= nextWeekMonday && a.PlanStartDate < next2WeekMonday && a.IsReplenishmentModel == "N").Result.OrderBy(a => a.Priority).ToList();
+ var weekPlan = _replenishmentWeekPlan.GetListAsync(a => a.PlanStartDate >= nextWeekMonday && a.PlanStartDate < next2WeekMonday && a.IsReplenishmentModel == "N" && a.ProductionStatus=="").Result.OrderBy(a => a.Priority).ToList();
List<WorkOrdMaster> workMasters = _workOrdMaster.Select(a => weekPlan.Select(s => s.ItemNumber).Contains(a.ItemNum) && weekPlan.Select(p => p.ProductionOrder).Contains(a.WorkOrd) && a.Domain == input.factory_id.ToString());
List<mes_morder> mes_Morders = _mysql_mes_morder.GetListAsync(a => workMasters.Select(b => b.WorkOrd).ToList().Contains(a.morder_no) && a.factory_id == input.factory_id).Result;
decimal priority = 1;
@@ -68,7 +68,8 @@ namespace Business.ResourceExamineManagement
public void GetBomList(List<mo_ic_bom> bomlist, List<mo_ic_bom_child> bomchildlist, List<mo_ic_item> icitemlist, BomChildExamineDto dto, List<BomChildExamineDto> returnlist, int type, int orderNum)
int level = dto.level + 1;//初始化定义level层级
-
+ if (level > 10)
+ return;
var bom = bomlist.Where(s => s.mysql_id == dto.bom_id).FirstOrDefault();
mo_ic_item item = new mo_ic_item();
if (bom != null)
@@ -9,7 +9,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="GZY.Quartz.MUI" Version="2.3.0" />
+ <PackageReference Include="Huffey.Quartz.MUI" Version="1.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.3" />
<PackageReference Include="Microsoft.AspNetCore.DataProtection.StackExchangeRedis" Version="6.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.5">