Uat_Study
he 2023-01-13 13:50:22 +08:00
parent 717134932e
commit 46abd0ab77
2 changed files with 10 additions and 2 deletions

View File

@ -1153,6 +1153,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
{
public Guid QuestionId { get; set; }
/// <summary>
/// 问题名称
/// </summary>
public string QuestionName { get; set; }
/// <summary>
/// 自定义计算标记
/// </summary>

View File

@ -504,10 +504,12 @@ namespace IRaCIS.Application.Services
{
if (inDto.TrialReadingCriterionId != null)
{
return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId)
return await _readingQuestionTrialRepository.Where(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId
&&x.DataSource== DataSources.Automatic&&x.Type== "number")
.Select(x => new CalculateRelationDto()
{
QuestionId = x.Id,
QuestionName= x.QuestionName,
CustomCalculateMark = x.CustomCalculateMark,
CalculateQuestionList = x.CalculateQuestionList,
ValueType = x.ValueType,
@ -518,10 +520,11 @@ namespace IRaCIS.Application.Services
}
else
{
return await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId)
return await _readingTableQuestionTrialRepository.Where(x => x.ReadingQuestionId == inDto.ReadingQuestionId && x.DataSource == DataSources.Automatic && x.Type == "number")
.Select(x => new CalculateRelationDto()
{
QuestionId = x.Id,
QuestionName = x.QuestionName,
CustomCalculateMark = x.CustomCalculateMark,
CalculateQuestionList = x.CalculateQuestionList,
ValueType = x.ValueType,