diff --git a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs index 6c6df23da..47be74d4b 100644 --- a/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs +++ b/IRaCIS.Core.Application/Service/SiteSurvey/TrialSiteSurveyService.cs @@ -268,7 +268,6 @@ namespace IRaCIS.Core.Application.Contracts currentEntity = currentLatest; - if (currentEntity.State != TrialSiteSurveyEnum.PMCreatedAndLock) { @@ -277,7 +276,6 @@ namespace IRaCIS.Core.Application.Contracts } - } @@ -302,6 +300,8 @@ namespace IRaCIS.Core.Application.Contracts return ResponseOutput.NotOk(_localizer["TrialSiteSurvey_NoRecordToUpdate"]); } + + //未锁定的状态 就改为废除 if (currentLatest.State != TrialSiteSurveyEnum.PMCreatedAndLock) { @@ -312,10 +312,10 @@ namespace IRaCIS.Core.Application.Contracts { } - var copy = currentLatest.Clone(); copy.State = TrialSiteSurveyEnum.ToSubmit; + copy.IsDeleted = false; copy.Email = userInfo.EmailOrPhone; copy.Id = Guid.Empty;