修改一版

Uat_Study
he 2022-09-16 14:17:50 +08:00
parent 63f1e52376
commit 6be2b2183a
2 changed files with 24 additions and 12 deletions

View File

@ -970,18 +970,25 @@ namespace IRaCIS.Application.Services
///// <summary> /// <summary>
///// 删除系统问题标准 /// 删除系统问题标准
///// </summary> /// </summary>
///// <param name="readingQuestionCriterionSystemId"></param> /// <param name="id"></param>
///// <returns></returns> /// <returns></returns>
//[HttpDelete("{readingQuestionCriterionSystemId:guid}")] [HttpDelete("{id:guid}")]
//public async Task<IResponseOutput> DeleteReadingQuestionCriterionSystem(Guid readingQuestionCriterionSystemId) public async Task<IResponseOutput> DeleteReadingQuestionCriterionSystem(Guid id)
//{ {
// await _readingQuestionCriterionSystemRepository.DeleteFromQueryAsync(t => t.Id == readingQuestionCriterionSystemId);
// var success = await _readingQuestionCriterionSystemRepository.SaveChangesAsync();
// return ResponseOutput.Result(success); if (await _readingQuestionCriterionTrialRepository.AnyAsync(x => x.IsConfirm && x.ReadingQuestionCriterionSystemId == id))
//} {
throw new BusinessValidationFailedException("当前标准被引用过了,不可以删除");
}
await _readingQuestionCriterionSystemRepository.DeleteFromQueryAsync(t => t.Id == id);
var success = await _readingQuestionCriterionSystemRepository.SaveChangesAsync();
return ResponseOutput.Result(success);
}

View File

@ -351,6 +351,11 @@ namespace IRaCIS.Core.Domain.Share
/// 整体肿瘤评估 /// 整体肿瘤评估
/// </summary> /// </summary>
Tumor = 13, Tumor = 13,
/// <summary>
/// 整体评估调整原因
/// </summary>
AdjustReason = 14,
} }
/// <summary> /// <summary>