修改一版
This commit is contained in:
@@ -88,7 +88,11 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||
public bool IsEnable { get; set; }
|
||||
}
|
||||
|
||||
|
||||
public class VerifySystemQuestionIsSetJudgeAnswerInDto
|
||||
{
|
||||
[NotDefault]
|
||||
public Guid Id { get; set; }
|
||||
}
|
||||
public class SetSystemReadingQuestionCriterionIsIsCompleteConfig
|
||||
{
|
||||
[NotDefault]
|
||||
|
||||
@@ -131,6 +131,29 @@ namespace IRaCIS.Application.Services
|
||||
// return ResponseOutput.Ok(result);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// 验证系统问题是否设置裁判答案
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<IResponseOutput> VerifySystemQuestionIsSetJudgeAnswer(VerifySystemQuestionIsSetJudgeAnswerInDto inDto)
|
||||
{
|
||||
var result = await _readingQuestionTrialRepository.AnyAsync(x => x.ReadingQuestionSystemId == inDto.Id&&x.IsJudgeQuestion && x.JudgeType != JudgeTypeEnum.None);
|
||||
return ResponseOutput.Ok(result);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 验证项目问题是否设置裁判答案
|
||||
/// </summary>
|
||||
/// <param name="inDto"></param>
|
||||
/// <returns></returns>
|
||||
public async Task<IResponseOutput> VerifyTrialQuestionIsSetJudgeAnswer(VerifySystemQuestionIsSetJudgeAnswerInDto inDto)
|
||||
{
|
||||
var result = await _readingQuestionTrialRepository.AnyAsync(x => x.Id == inDto.Id && x.IsJudgeQuestion && x.JudgeType != JudgeTypeEnum.None);
|
||||
return ResponseOutput.Ok(result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 设置系统问题标准是否完成配置
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user