权限过滤

parent e10576de
...@@ -71,6 +71,7 @@ public ApiResponse GetCollectSheet(int hospitalId) ...@@ -71,6 +71,7 @@ public ApiResponse GetCollectSheet(int hospitalId)
var regex = new Regex("^[0-9]"); var regex = new Regex("^[0-9]");
var userId = claim.GetUserId(); var userId = claim.GetUserId();
var result = collectService.GetCollectSheet(hospitalId, userId) var result = collectService.GetCollectSheet(hospitalId, userId)
.Where(w => !collectService.retain.Contains(w.HeadName))
?.Select(w => new { w.SheetType, w.SheetName }) ?.Select(w => new { w.SheetType, w.SheetName })
.Distinct() .Distinct()
.ToList(); .ToList();
......
...@@ -56,7 +56,7 @@ public class CollectService : IAutoInjection ...@@ -56,7 +56,7 @@ public class CollectService : IAutoInjection
this.options = options.Value; this.options = options.Value;
} }
private readonly string[] retain = new[] { "核算单元(医技组)", "核算单元(医生组)", "核算单元(护理组)", "科室名称", "核算单元", public string[] retain { get; } = new[] { "核算单元(医技组)", "核算单元(医生组)", "核算单元(护理组)", "科室名称", "核算单元",
"核算单元类型", "人员工号", "医生姓名", "姓名", "核算单元分类", "人员分类" }; "核算单元类型", "人员工号", "医生姓名", "姓名", "核算单元分类", "人员分类" };
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment