修改一版
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user