调拨出库
This commit is contained in:
@@ -97,6 +97,7 @@ namespace Tnb.ProductionMgr
|
||||
Dictionary<string, string>? queryJson = !string.IsNullOrEmpty(input.queryJson) ? JsonConvert.DeserializeObject<Dictionary<string, string>>(input.queryJson) : new Dictionary<string, string>();
|
||||
string moTaskCode = queryJson.ContainsKey("mo_task_code") ? queryJson["mo_task_code"].ToString() : "";
|
||||
string moTaskStatus = queryJson.ContainsKey("mo_task_status") ? queryJson["mo_task_status"].ToString() : "";
|
||||
string eqpId = queryJson.ContainsKey("eqp_id") ? queryJson["eqp_id"].ToString() : "";
|
||||
SqlSugarPagedList<PrdMoTaskIssueListOutput> result = await db.Queryable<PrdMoTask>()
|
||||
.LeftJoin<BasMaterial>((a, b) => a.material_id == b.id)
|
||||
.LeftJoin<DictionaryTypeEntity>((a, b, c) => c.EnCode == DictConst.TaskStatus)
|
||||
@@ -108,6 +109,7 @@ namespace Tnb.ProductionMgr
|
||||
//.LeftJoin<UserEntity>((a, b, c, d, e, f, g,h,i)=>a.worker_id==i.Id)
|
||||
.WhereIF(!string.IsNullOrEmpty(moTaskCode), (a, b, c, d) => a.mo_task_code.Contains(moTaskCode))
|
||||
.WhereIF(!string.IsNullOrEmpty(moTaskStatus), (a, b, c, d) => a.mo_task_status == moTaskStatus)
|
||||
.WhereIF(!string.IsNullOrEmpty(eqpId), (a, b, c, d,e,f,g) => g.code.Contains(eqpId) || g.name.Contains(eqpId))
|
||||
.Where((a, b, c, d, e, f) => a.schedule_type == 1)
|
||||
.Select((a, b, c, d, e, f, g,h) => new PrdMoTaskIssueListOutput
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user