bug
This commit is contained in:
@@ -2700,8 +2700,14 @@ namespace Tnb.ProductionMgr
|
||||
{
|
||||
string station_id = dic.ContainsKey("station_id") ? dic["station_id"] : "";
|
||||
if (string.IsNullOrEmpty(station_id)) throw Oops.Bah("工位错误");
|
||||
|
||||
return await _db.Queryable<PrdMoTask>().Where(x => x.workstation_id == station_id && x.parent_id!=null && x.mo_task_status==DictConst.InProgressEnCode).FirstAsync();
|
||||
var prdMoTask = await _db.Queryable<PrdMoTask>().Where(x => x.workstation_id == station_id && x.parent_id!=null && x.mo_task_status==DictConst.InProgressEnCode).FirstAsync();
|
||||
if (prdMoTask != null)
|
||||
{
|
||||
BasMaterial basMaterial = await _db.Queryable<BasMaterial>().SingleAsync(x => x.id == prdMoTask.material_id);
|
||||
prdMoTask.material_name = basMaterial.name;
|
||||
}
|
||||
|
||||
return prdMoTask;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user