This commit is contained in:
he
2022-08-03 15:51:39 +08:00
parent 810a601583
commit c19c34b80a
8 changed files with 75 additions and 3 deletions
@@ -620,6 +620,10 @@ namespace IRaCIS.Core.Application.Contracts
public int? DigitPlaces { get; set; }
public FormType? FormType { get; set; }
public int ImageCount { get; set; }
/// <summary>
/// 项目标准Id
/// </summary>
@@ -702,6 +706,9 @@ namespace IRaCIS.Core.Application.Contracts
/// </summary>
public int? DigitPlaces { get; set; }
public int ImageCount { get; set; }
public bool IsSignSave { get; set; } = false;
}
@@ -229,6 +229,7 @@ namespace IRaCIS.Core.Application
result.DigitPlaces = trialCriterion.DigitPlaces;
result.TrialCriterionId = trialCriterion.Id;
result.FormType = trialCriterion.FormType;
result.ImageCount=trialCriterion.ImageCount;
};
result.TrialQuestionList = await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrial.IsConfirm && x.TrialId == inDto.TrialId&&x.ReadingQuestionCriterionTrialId == result.TrialCriterionId
@@ -247,7 +248,6 @@ namespace IRaCIS.Core.Application
/// <returns></returns>
public async Task<IResponseOutput> SetTrialReadingCriterion(SetTrialReadingCriterionInDto inDto)
{
if (inDto.IsSignSave)
{
var criterionFormType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialCriterionId).Select(x => x.FormType).FirstOrDefaultAsync();
@@ -261,12 +261,11 @@ namespace IRaCIS.Core.Application
}
}
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialCriterionId, x => new ReadingQuestionCriterionTrial()
{
FormType = inDto.FormType,
DigitPlaces = inDto.DigitPlaces,
ImageCount=inDto.ImageCount,
});