修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-04-18 13:36:53 +08:00
parent d2571d5f79
commit 34b90538ab
2 changed files with 25 additions and 9 deletions

View File

@ -183,6 +183,22 @@ namespace IRaCIS.Core.Application.Services
return ResponseOutput.Result(result);
}
/// <summary>
/// 下线系统文档
/// </summary>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> OutLineSystemDocument(PublishSystemDocumentInDto inDto)
{
await _systemDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new SystemDocument()
{
IsDeleted = true,
});
var result = await _systemDocumentRepository.SaveChangesAsync();
await _mediatorScoped.Publish(new SystemDocumentPublishEvent() { Ids = inDto.Ids });
return ResponseOutput.Result(result);
}
[HttpDelete("{systemDocumentId:guid}")]
public async Task<IResponseOutput> AbandonSystemDocumentAsync(Guid systemDocumentId)
{

View File

@ -2411,16 +2411,16 @@ namespace IRaCIS.Core.Application.Service
case CriterionType.mRECISTHCC:
var orginInfo=await _organTrialInfoRepository.Where(x =>x.TrialCriterionId== taskinfo.TrialReadingCriterionId&& x.OrganInfoId == inDto.OrganInfoId).FirstOrDefaultAsync();
//var orginInfo=await _organTrialInfoRepository.Where(x =>x.TrialCriterionId== taskinfo.TrialReadingCriterionId&& x.OrganInfoId == inDto.OrganInfoId).FirstOrDefaultAsync();
if (orginInfo != null && orginInfo.TULOCEN == "Liver")
{
var otherorganCount=await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.Id!=inDto.Id&&x.OrganInfo.TULOCEN == "Liver").CountAsync();
if (otherorganCount >=2)
{
throw new BusinessValidationFailedException(_localizer["ReadingImageTask_HCCOrganRepeat"]);
}
}
//if (orginInfo != null && orginInfo.TULOCEN == "Liver")
//{
// var otherorganCount=await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.Id!=inDto.Id&&x.OrganInfo.TULOCEN == "Liver").CountAsync();
// if (otherorganCount >=2)
// {
// throw new BusinessValidationFailedException(_localizer["ReadingImageTask_HCCOrganRepeat"]);
// }
//}
// 如果当前添加 是 非靶病灶 并且 典型肝内病灶为 是 时 如果 靶病灶的典型肝内病灶 为是的 数量<2 给提示