接口路由bug
parent
e142e8ef02
commit
0f6bae867c
|
@ -1632,7 +1632,7 @@
|
||||||
<param name="trialId"></param>
|
<param name="trialId"></param>
|
||||||
<returns></returns>
|
<returns></returns>
|
||||||
</member>
|
</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>
|
||||||
废除项目
|
废除项目
|
||||||
</summary>
|
</summary>
|
||||||
|
|
|
@ -244,17 +244,17 @@ namespace IRaCIS.Core.Application
|
||||||
/// <param name="signId"></param>
|
/// <param name="signId"></param>
|
||||||
/// <param name="isAbandon"></param>
|
/// <param name="isAbandon"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPut("{trialId:guid}/{signId:guid}/{isAbandon:bool}")]
|
[HttpPut("{trialId:guid}/{isAbandon:bool}")]
|
||||||
public async Task<IResponseOutput> AbandonTrial(Guid trialId, Guid signId, bool isAbandon)
|
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>
|
||||||
/// 删除协议
|
/// 删除协议
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[HttpDelete, Route("deleteReviewerAckSOW/{trialId}/{doctorId}/{attachmentId}")]
|
[HttpDelete, Route("{trialId}/{doctorId}/{attachmentId}")]
|
||||||
|
|
||||||
[TypeFilter(typeof(TrialResourceFilter))]
|
[TypeFilter(typeof(TrialResourceFilter))]
|
||||||
public async Task<IResponseOutput> DeleteReviewerAckSOW(Guid trialId, Guid doctorId, Guid attachmentId)
|
public async Task<IResponseOutput> DeleteReviewerAckSOW(Guid trialId, Guid doctorId, Guid attachmentId)
|
||||||
|
|
Loading…
Reference in New Issue