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;