工单列表按照优先级降序排列

This commit is contained in:
xiaowei.song
2023-11-16 10:08:13 +08:00
parent 004f6210bd
commit 0b6ec753e6

View File

@@ -57,7 +57,7 @@ namespace ZR.Service.mes.pro
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)