问题修改

IRC_NewDev
he 2024-05-10 13:19:24 +08:00
parent adab66172d
commit 01e047f639
4 changed files with 34 additions and 11 deletions

View File

@ -1810,8 +1810,13 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public List<string> AnswerGroup { get; set; }
public List<AnswerCombinationDto> AnswerCombination { get; set; }
/// <summary>
/// 裁判百分比或绝对值的相差值
/// </summary>
public decimal? JudgeDifferenceValue { get; set; }
public List<AnswerCombinationDto> AnswerCombination { get; set; }
@ -1821,8 +1826,13 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
public class GetTrialCriterionJudgeQuestionListOutDto
{
public Guid ReadingQuestionTrialId { get; set; }
public string QuestionName { get; set; }
/// <summary>
/// 裁判百分比或绝对值的相差值
/// </summary>
public decimal? JudgeDifferenceValue { get; set; }
public string QuestionName { get; set; }
public string PageName { get; set; }

View File

@ -46,7 +46,8 @@ namespace IRaCIS.Application.Services
QuestionGenre=x.QuestionGenre,
DictionaryCode=x.DictionaryCode,
JudgeType = x.JudgeType,
ReadingQuestionTrialId = x.Id
ReadingQuestionTrialId = x.Id,
JudgeDifferenceValue= x.JudgeDifferenceValue
}).ToListAsync();
@ -70,7 +71,9 @@ namespace IRaCIS.Application.Services
{
AnswerGroup = JsonConvert.SerializeObject(inDto.AnswerGroup),
AnswerCombination = JsonConvert.SerializeObject(inDto.AnswerCombination),
JudgeType = inDto.JudgeType,
JudgeDifferenceValue= inDto.JudgeDifferenceValue,
JudgeType = inDto.JudgeType,
});
var result = await _readingQuestionTrialRepository.SaveChangesAsync();

View File

@ -2571,12 +2571,17 @@ public enum PET5PSScore
/// </summary>
AnswerCombination = 3,
/// <summary>
/// 不计算
/// </summary>
NotCalculate=4,
/// <summary>
/// 相差绝对值
/// </summary>
DifferenceAbsoluteValue = 4,
}
/// <summary>
/// 相差百分比
/// </summary>
PercentageDifference = 5,
}

View File

@ -134,6 +134,11 @@ namespace IRaCIS.Core.Domain.Models
/// </summary>
public JudgeTypeEnum JudgeType { get; set; } = JudgeTypeEnum.AnswerDisaffinity;
/// <summary>
/// 裁判百分比或绝对值的相差值
/// </summary>
public decimal? JudgeDifferenceValue { get; set; }
/// <summary>
/// 创建人
/// </summary>