From 85ea388a794c48a8d0d817ec5f763c0bde2640bd Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Wed, 14 Sep 2022 17:04:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=BD=E6=9F=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Common/AuditingData.cs | 65 +++++++++---------- 1 file changed, 29 insertions(+), 36 deletions(-) diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 91c73c1c7..e9e4d337f 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -2077,42 +2077,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common var visitTask = entityObj as VisitTask; - switch (_userInfo.RequestUrl) - { - //申请重阅 - case "VisitTask/applyReReading": - type = type + "/" + (int)visitTask.ReReadingApplyState; - break; - - - //同意重阅 - case "VisitTask/ConfirmReReading": - - if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.APM) - { - type = type + "/" + 1; - - } - else - { - type = type + "/" + 2; - } - - - //if (visitTask.ReReadingApplyState == ReReadingApplyState.Agree) - //{ - // type = type + "/" + 1; - - //} - //else if (visitTask.ReReadingApplyState == ReReadingApplyState.Reject) - //{ - // type = type + "/" + 2; - //} - break; - - - - } if (type == AuditOpt.Add) { @@ -2135,6 +2099,35 @@ namespace IRaCIS.Core.Infra.EFCore.Common } + else + { + switch (_userInfo.RequestUrl) + { + //申请重阅 + case "VisitTask/applyReReading": + type = type + "/" + (int)visitTask.ReReadingApplyState; + break; + + + //同意重阅 + case "VisitTask/ConfirmReReading": + + if (_userInfo.UserTypeEnumInt == (int)UserTypeEnum.ProjectManager || _userInfo.UserTypeEnumInt == (int)UserTypeEnum.APM) + { + type = type + "/" + 1; + + } + else + { + type = type + "/" + 2; + } + + break; + } + + } + + break;