From c8d5b94154bee4ec07dca56853b47aae7193f224 Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Mon, 29 Sep 2025 13:42:27 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=B8=8B=E6=8B=89=E6=A1=86?=
=?UTF-8?q?=E8=BF=87=E6=BB=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Document/TrialDocumentService.cs | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs b/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs
index d5f2ff386..7189d817a 100644
--- a/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs
+++ b/IRaCIS.Core.Application/Service/Document/TrialDocumentService.cs
@@ -900,7 +900,12 @@ namespace IRaCIS.Core.Application.Services
///
public async Task GetSysDocSignUserList()
{
- var list = _systemDocConfirmedUserRepository.Where(t => t.ConfirmTime != null).Select(t => new { t.ConfirmUserId, t.ConfirmUser.UserName, t.ConfirmUser.FullName }).Distinct().ToList();
+ //EA 只能查看内部人员文档
+ var isEA = _userInfo.UserTypeEnumInt == (int)UserTypeEnum.EA;
+
+ var list = _systemDocConfirmedUserRepository.Where(t => t.ConfirmTime != null)
+ .WhereIf(isEA, t => t.ConfirmUser.IsZhiZhun == true)
+ .Select(t => new { t.ConfirmUserId, t.ConfirmUser.UserName, t.ConfirmUser.FullName }).Distinct().ToList();
return ResponseOutput.Ok(list);
}