This commit is contained in:
qianhao.xu
2024-12-18 18:59:29 +08:00
parent b85e332e4d
commit 429c492422
2 changed files with 1 additions and 13 deletions

View File

@@ -70,16 +70,7 @@ namespace DOAN.Service.MES.dev
}
int InnerType=0;
if (item.Type==1)
{
InnerType = Context.Queryable<DeviceRouteInspectionPlan>().Where(it => it.Id == item.PlanId)
.Select(it => it.InnerType??0).First();
}else if (item.Type==2)
{
InnerType = Context.Queryable<DevicePointInspectionPlan>().Where(it => it.Id == item.PlanId)
.Select(it => it.InnerType ?? 0).First();
}
item.InnerType = InnerType;
}