9/8
This commit is contained in:
@@ -33,15 +33,19 @@ namespace ZR.Service.mes.md
|
||||
.AndIF(!string.IsNullOrEmpty(StationCode), it => it.StationCode.Contains(StationCode))
|
||||
.AndIF(!string.IsNullOrEmpty(StationName), it => it.StationName.Contains(StationName))
|
||||
.ToExpression();
|
||||
List<MdWorkstation> data = Context.Queryable<MdWorkstation>().Where(predicate).ToPageList(pageNum, pageSize, ref totalNum);
|
||||
List<MdWorkstation> data = Context.Queryable<MdWorkstation>().Includes(x => x.Workline).Where(predicate).ToPageList(pageNum, pageSize, ref totalNum);
|
||||
return (totalNum, data);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public int UpdateWorkshop(MdWorkstation workshop)
|
||||
{
|
||||
return Update(workshop, true);
|
||||
}
|
||||
|
||||
|
||||
public List<MdWorkline> GetworkLineList()
|
||||
{
|
||||
return Context.Queryable<MdWorkline>().ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user