修改一版
parent
f5a249cf28
commit
039b478261
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue