问题修改

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<string> AnswerGroup { get; set; }
/// <summary>
/// 裁判百分比或绝对值的相差值
/// </summary>
public decimal? JudgeDifferenceValue { get; set; }
public List<AnswerCombinationDto> AnswerCombination { get; set; }
public List<AnswerCombinationDto> AnswerCombination { get; set; }
@ -1822,7 +1827,12 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
{ {
public Guid ReadingQuestionTrialId { get; set; } 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; } public string PageName { get; set; }

View File

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

View File

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

View File

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