接口路由bug

Uat_Study
hang 2022-04-19 16:27:05 +08:00
parent e142e8ef02
commit 0f6bae867c
3 changed files with 7 additions and 7 deletions

View File

@ -1632,7 +1632,7 @@
<param name="trialId"></param>
<returns></returns>
</member>
<member name="M:IRaCIS.Core.Application.TrialConfigService.AbandonTrial(System.Guid,System.Guid,System.Boolean)">
<member name="M:IRaCIS.Core.Application.TrialConfigService.AbandonTrial(System.Guid,System.Boolean)">
<summary>
废除项目
</summary>

View File

@ -244,17 +244,17 @@ namespace IRaCIS.Core.Application
/// <param name="signId"></param>
/// <param name="isAbandon"></param>
/// <returns></returns>
[HttpPut("{trialId:guid}/{signId:guid}/{isAbandon:bool}")]
public async Task<IResponseOutput> AbandonTrial(Guid trialId, Guid signId, bool isAbandon)
[HttpPut("{trialId:guid}/{isAbandon:bool}")]
public async Task<IResponseOutput> AbandonTrial(Guid trialId, /*Guid? signId,*/ bool isAbandon)
{
await _trialRepository.BatchUpdateAsync(t => t.Id == trialId, u => new Trial() { IsDeleted = isAbandon });
await _trialRepository.UpdatePartialFields(trialId, u => new Trial() { IsDeleted = isAbandon },true);
var success = await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
//var success = await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
return ResponseOutput.Result(success);
return ResponseOutput.Ok();
}

View File

@ -78,7 +78,7 @@ namespace IRaCIS.Application.Services
/// <summary>
/// 删除协议
/// </summary>
[HttpDelete, Route("deleteReviewerAckSOW/{trialId}/{doctorId}/{attachmentId}")]
[HttpDelete, Route("{trialId}/{doctorId}/{attachmentId}")]
[TypeFilter(typeof(TrialResourceFilter))]
public async Task<IResponseOutput> DeleteReviewerAckSOW(Guid trialId, Guid doctorId, Guid attachmentId)