21
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
zpc 2026-04-21 23:42:35 +08:00
parent 335bee4928
commit cf34c18f2a

View File

@ -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()