工单列表按照优先级降序排列
This commit is contained in:
@@ -57,7 +57,7 @@ namespace ZR.Service.mes.pro
|
|||||||
|
|
||||||
public List<ProWorkorder> GetWorkorderListByPlanId(string id)
|
public List<ProWorkorder> GetWorkorderListByPlanId(string id)
|
||||||
{
|
{
|
||||||
return Context.Queryable<ProWorkorder>().Where(it => it.FkProPlanId == id).ToList();
|
return Context.Queryable<ProWorkorder>().Where(it => it.FkProPlanId == id).OrderBy("priority desc ").ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<ProWorkorder> GetWorkorderListById(string id)
|
public List<ProWorkorder> GetWorkorderListById(string id)
|
||||||
|
|||||||
Reference in New Issue
Block a user