代码修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
79a6e43e02
commit
1316dae035
|
@ -266,6 +266,16 @@ namespace IRaCIS.Application.Services
|
||||||
&& x.ReadingCategory == ReadingCategory.Global
|
&& x.ReadingCategory == ReadingCategory.Global
|
||||||
&& x.ReadingTaskState == ReadingTaskState.HaveSigned).Select(x => x.JudgeVisitTaskId).FirstOrDefaultAsync();
|
&& x.ReadingTaskState == ReadingTaskState.HaveSigned).Select(x => x.JudgeVisitTaskId).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
// 要判断是否为老裁判任务的Id
|
||||||
|
if (judgeVisitTaskId != null)
|
||||||
|
{
|
||||||
|
// 如果不存在有效的裁判
|
||||||
|
if (!(await _visitTaskRepository.AnyAsync(x => x.Id == judgeVisitTaskId && x.TaskState == TaskState.Effect)))
|
||||||
|
{
|
||||||
|
judgeVisitTaskId = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 获取系统配置
|
// 获取系统配置
|
||||||
var readingType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == readModuleInfo.TrialReadingCriterionId).Select(x => x.ReadingType).FirstOrDefaultAsync();
|
var readingType = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == readModuleInfo.TrialReadingCriterionId).Select(x => x.ReadingType).FirstOrDefaultAsync();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue