Merge branch 'master' of https://gitee.com/doan-tech/zhengzhou-byd-lms
This commit is contained in:
commit
d67ea5c54d
@ -184,12 +184,14 @@ namespace DOAN.Service.Bydlms
|
||||
public List<BydWorkorder> GetWorkOrderProducting(string line_code)
|
||||
{
|
||||
DateTime now = DateTime.Now.Date;
|
||||
return Context.Queryable<BydWorkorder>().Where(it => it.OrderStartTime01 == now)
|
||||
var result= Context.Queryable<BydWorkorder>().Where(it => it.OrderStartTime01 == now)
|
||||
.Where(it => it.LineCode == line_code)
|
||||
.Where(it => it.ScheduleCode == "1" || it.ScheduleCode == "2" || it.ScheduleCode == "3")
|
||||
.OrderBy(it=>it.Sort)
|
||||
.Take(2).ToList();
|
||||
|
||||
return result;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user