接口路由bug
parent
e142e8ef02
commit
0f6bae867c
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue