修正
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user