修改一版

Uat_Study
he 2022-08-11 09:46:17 +08:00
parent f5a249cf28
commit 039b478261
1 changed files with 12 additions and 7 deletions

View File

@ -311,19 +311,24 @@ namespace IRaCIS.Application.Services
}
}
var systemCriterion = await _readingQuestionCriterionSystemRepository.Where(x => x.Id == inDto.Id).AsNoTracking().FirstOrDefaultAsync();
var confirmTime = systemCriterion.ConfirmTime;
if (inDto.IsCompleteConfig)
{
confirmTime = DateTime.Now;
}
await _readingQuestionCriterionSystemRepository.UpdatePartialFromQueryAsync(inDto.Id, x => new ReadingQuestionCriterionSystem()
{
IsCompleteConfig = inDto.IsCompleteConfig
IsCompleteConfig = inDto.IsCompleteConfig,
ConfirmTime= confirmTime,
});
if (inDto.IsCompleteConfig)
{
await SynchronizeSystemCriterion(inDto.Id);
await _readingQuestionCriterionSystemRepository.UpdatePartialFromQueryAsync(inDto.Id, x => new ReadingQuestionCriterionSystem()
{
ConfirmTime = DateTime.Now
}) ;
//await SynchronizeSystemCriterion(inDto.Id);
}
else
{