修改
This commit is contained in:
@@ -756,7 +756,7 @@ namespace IRaCIS.Core.Application.Contracts
|
||||
|
||||
public class SetTrialReadingCriterionInDto
|
||||
{
|
||||
public Guid TrialCriterionId { get; set; }
|
||||
public Guid TrialReadingCriterionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表单类型
|
||||
|
||||
@@ -294,8 +294,8 @@ namespace IRaCIS.Core.Application
|
||||
{
|
||||
if (inDto.IsSignSave)
|
||||
{
|
||||
var criterionFormType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialCriterionId).Select(x => x.FormType).FirstOrDefaultAsync();
|
||||
var count = _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialCriterionId)
|
||||
var criterionFormType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == inDto.TrialReadingCriterionId).Select(x => x.FormType).FirstOrDefaultAsync();
|
||||
var count = _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
|
||||
.WhereIf(criterionFormType == FormType.SinglePage, x => x.ReadingCriterionPageId == null)
|
||||
.WhereIf(criterionFormType == FormType.MultiplePage, x => x.ReadingCriterionPageId != null).Count();
|
||||
|
||||
@@ -305,7 +305,7 @@ namespace IRaCIS.Core.Application
|
||||
}
|
||||
}
|
||||
|
||||
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialCriterionId, x => new ReadingQuestionCriterionTrial()
|
||||
await _readingQuestionCriterionTrialRepository.UpdatePartialFromQueryAsync(inDto.TrialReadingCriterionId, x => new ReadingQuestionCriterionTrial()
|
||||
{
|
||||
FormType = inDto.FormType,
|
||||
DigitPlaces = inDto.DigitPlaces,
|
||||
|
||||
Reference in New Issue
Block a user