This commit is contained in:
he
2023-04-04 15:19:26 +08:00
parent 7c4002c252
commit 8ec9a29f93
3 changed files with 90 additions and 2 deletions
@@ -402,7 +402,7 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
{
public Guid VisitTaskId { get; set; }
public Guid QuestionId { get; set; }
public Guid QuestionId { get; set; } = default(Guid);
public Guid RowId { get; set; }
@@ -1395,6 +1395,8 @@ namespace IRaCIS.Application.Services
return ResponseOutput.Ok(true);
}
inDto.QuestionId = deleteRowInfo.QuestionId;
if (await _readingTableAnswerRowInfoRepository.AnyAsync(x => x.SplitRowId == deleteRowInfo.Id && x.MergeRowId == deleteRowInfo.Id))
{
throw new BusinessValidationFailedException(_localizer["ReadingImage_DeleteError"]);