This commit is contained in:
parent
335bee4928
commit
cf34c18f2a
|
|
@ -24,13 +24,13 @@ namespace ZR.Service.Business
|
|||
|
||||
// 部门数据隔离
|
||||
var visibleDeptIds = DeptDataScopeHelper.GetVisibleDeptIds(Context, deptId);
|
||||
predicate = predicate.And(it => visibleDeptIds.Contains(it.DeptId));
|
||||
predicate = predicate.And(mp => visibleDeptIds.Contains(mp.DeptId));
|
||||
|
||||
// 按 CableId 过滤
|
||||
predicate = predicate.AndIF(parm.CableId != null, it => it.CableId == parm.CableId);
|
||||
predicate = predicate.AndIF(parm.CableId != null, mp => mp.CableId == parm.CableId);
|
||||
|
||||
// 按名称关键字过滤
|
||||
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.Keyword), it => it.Name.Contains(parm.Keyword));
|
||||
predicate = predicate.AndIF(!string.IsNullOrEmpty(parm.Keyword), mp => mp.Name.Contains(parm.Keyword));
|
||||
|
||||
var total = 0;
|
||||
var list = Queryable()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user