Merge branch 'dev' of https://git.tuotong-tech.com/tnb/tnb.server into dev
This commit is contained in:
@@ -417,9 +417,9 @@ namespace Tnb.QcMgr
|
|||||||
ISugarQueryable<QcCheckPlanH, QcCheckPlanAdd, QcCheckPlanMaterial, QcCheckPlanProcess, QcCheckPlanWork> Query = _repository.AsSugarClient().Queryable<QcCheckPlanH, QcCheckPlanAdd, QcCheckPlanMaterial, QcCheckPlanProcess, QcCheckPlanWork>
|
ISugarQueryable<QcCheckPlanH, QcCheckPlanAdd, QcCheckPlanMaterial, QcCheckPlanProcess, QcCheckPlanWork> Query = _repository.AsSugarClient().Queryable<QcCheckPlanH, QcCheckPlanAdd, QcCheckPlanMaterial, QcCheckPlanProcess, QcCheckPlanWork>
|
||||||
((a, b, c, d, e) => new object[] {
|
((a, b, c, d, e) => new object[] {
|
||||||
JoinType.Inner,a.id== b.mainid,
|
JoinType.Inner,a.id== b.mainid,
|
||||||
JoinType.Left,a.id == c.planid,
|
JoinType.Left,a.id == c.planid && c.materialid==entity.materialid,
|
||||||
JoinType.Left,a.id == d.planid,
|
JoinType.Left,a.id == d.planid && d.processid==entity.processid,
|
||||||
JoinType.Left,a.id == e.planid,
|
JoinType.Left,a.id == e.planid && e.workid==entity.workid,
|
||||||
});
|
});
|
||||||
GetQuery(Query, entity);
|
GetQuery(Query, entity);
|
||||||
// if (!string.IsNullOrEmpty(entity.materialid))
|
// if (!string.IsNullOrEmpty(entity.materialid))
|
||||||
@@ -434,7 +434,7 @@ namespace Tnb.QcMgr
|
|||||||
// {
|
// {
|
||||||
// Query = Query.Where((a, b, c, d, e) => e.workid==entity.workid);
|
// Query = Query.Where((a, b, c, d, e) => e.workid==entity.workid);
|
||||||
// }
|
// }
|
||||||
Query = Query.Where((a, b, c, d, e)=>c.materialid==entity.materialid || d.processid==entity.processid || e.workid==entity.workid);
|
//Query = Query.Where((a, b, c, d, e)=>c.materialid==entity.materialid || d.processid==entity.processid || e.workid==entity.workid);
|
||||||
List<QcCheckPlanH> list = await Query.ToListAsync();
|
List<QcCheckPlanH> list = await Query.ToListAsync();
|
||||||
|
|
||||||
if (list.IsEmpty())
|
if (list.IsEmpty())
|
||||||
|
|||||||
Reference in New Issue
Block a user