权限过滤

parent e10576de
......@@ -71,9 +71,10 @@ public ApiResponse GetCollectSheet(int hospitalId)
var regex = new Regex("^[0-9]");
var userId = claim.GetUserId();
var result = collectService.GetCollectSheet(hospitalId, userId)
?.Select(w => new { w.SheetType, w.SheetName })
.Distinct()
.ToList();
.Where(w => !collectService.retain.Contains(w.HeadName))
?.Select(w => new { w.SheetType, w.SheetName })
.Distinct()
.ToList();
//result?.Add(new { SheetType = -1, SheetName = "预留比例" });
if (result == null || !result.Any()) return new ApiResponse(ResponseType.OK, result);
......
......@@ -56,7 +56,7 @@ public class CollectService : IAutoInjection
this.options = options.Value;
}
private readonly string[] retain = new[] { "核算单元(医技组)", "核算单元(医生组)", "核算单元(护理组)", "科室名称", "核算单元",
public string[] retain { get; } = new[] { "核算单元(医技组)", "核算单元(医生组)", "核算单元(护理组)", "科室名称", "核算单元",
"核算单元类型", "人员工号", "医生姓名", "姓名", "核算单元分类", "人员分类" };
/// <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