功能优化 成品调拨入库
This commit is contained in:
@@ -51,6 +51,7 @@ namespace Tnb.ProductionMgr
|
||||
Dictionary<string, object>? queryJson = !string.IsNullOrEmpty(input.queryJson) ? JsonConvert.DeserializeObject<Dictionary<string, object>>(input.queryJson) : new Dictionary<string, object>();
|
||||
string mo_task_code = queryJson.ContainsKey("mo_task_code") ? queryJson["mo_task_code"].ToString() : "";
|
||||
string mo_code = queryJson.ContainsKey("mo_id") ? queryJson["mo_id"].ToString() : "";
|
||||
string workstation_id = queryJson.ContainsKey("workstation_id") ? queryJson["workstation_id"].ToString() : "";
|
||||
// string workstation_id_str = queryJson.ContainsKey("workstation_id") ? queryJson["workstation_id"].ToString() : "";
|
||||
// string workstation_id = "";
|
||||
// if (!string.IsNullOrEmpty(workstation_id_str))
|
||||
@@ -81,6 +82,7 @@ namespace Tnb.ProductionMgr
|
||||
.LeftJoin<OrganizeEntity>((a,b,c,d,e,f)=>a.workline_id==f.Id)
|
||||
.WhereIF(!string.IsNullOrEmpty(mo_task_code),a=>a.mo_task_code.Contains(mo_task_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(mo_code),(a,b,c,d,e)=>d.mo_code.Contains(mo_code))
|
||||
.WhereIF(!string.IsNullOrEmpty(workstation_id),(a,b,c,d,e)=>workstation_id.Contains(a.workstation_id))
|
||||
.Where(a=>a.act_start_date!=null)
|
||||
.OrderBy($"{input.sidx} {input.sort}")
|
||||
.Select((a, b, c, d,e,f) => new PrdFeedingRecordUpListOutPut()
|
||||
|
||||
Reference in New Issue
Block a user