Compare commits

..

No commits in common. "4a335d2a28c59c7d4c5ed61c7a88835d5925c2c0" and "024e62103a4bd0919404842488617292680bf3ae" have entirely different histories.

2 changed files with 1 additions and 11 deletions

View File

@ -565,9 +565,7 @@ namespace IRaCIS.Core.Application.Service
{ {
if (indto.Id != null) if (indto.Id != null)
{ {
var isArbitrationReading = await _readingQuestionCriterionTrialRepository.Where(x => x.Id == indto.ReadingQuestionCriterionTrialId).Select(x => x.IsArbitrationReading).FirstOrDefaultAsync(); if (await _readingQuestionTrialRepository.AnyAsync(x => x.Id == indto.Id && x.IsJudgeQuestion && x.JudgeType != JudgeTypeEnum.None))
if (isArbitrationReading && (await _readingQuestionTrialRepository.AnyAsync(x => x.Id == indto.Id && x.IsJudgeQuestion && x.JudgeType != JudgeTypeEnum.None)))
{ {
//---当前问题已经设置了裁判标准了,修改失败 //---当前问题已经设置了裁判标准了,修改失败
throw new BusinessValidationFailedException(_localizer["ReadingQuestion_JudgmentSet"]); throw new BusinessValidationFailedException(_localizer["ReadingQuestion_JudgmentSet"]);

View File

@ -655,14 +655,6 @@ namespace IRaCIS.Core.Application
}); });
if (!inDto.IsArbitrationReading)
{
await _readingQuestionTrialRepository.UpdatePartialFromQueryAsync(x => x.ReadingQuestionCriterionTrialId == inDto.TrialReadingCriterionId, x => new ReadingQuestionTrial()
{
JudgeType = JudgeTypeEnum.None
});
}
List<TrialCriterionKeyFile> keyFileList = new List<TrialCriterionKeyFile>(); List<TrialCriterionKeyFile> keyFileList = new List<TrialCriterionKeyFile>();
await _trialCriterionKeyFileRepository.BatchDeleteNoTrackingAsync(t => t.TrialCriterionId == inDto.TrialReadingCriterionId); await _trialCriterionKeyFileRepository.BatchDeleteNoTrackingAsync(t => t.TrialCriterionId == inDto.TrialReadingCriterionId);
if (inDto.KeyFileList != null && inDto.KeyFileList.Count > 0) if (inDto.KeyFileList != null && inDto.KeyFileList.Count > 0)