From f7281f0daa0df884d0d47d719e48e448d760eab0 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 24 Oct 2022 17:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Triggers/SubjectStateTrigger.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/IRaCIS.Core.Application/Triggers/SubjectStateTrigger.cs b/IRaCIS.Core.Application/Triggers/SubjectStateTrigger.cs index 77a5ee1ac..7983ca9d7 100644 --- a/IRaCIS.Core.Application/Triggers/SubjectStateTrigger.cs +++ b/IRaCIS.Core.Application/Triggers/SubjectStateTrigger.cs @@ -82,6 +82,7 @@ namespace IRaCIS.Core.Application.Triggers sv.IsFinalVisit = true; + await _subjectVisitRepository.SaveChangesAsync(); //末次访视后的 访视设置为不可用 await _subjectVisitRepository.BatchUpdateNoTrackingAsync(t => t.SubjectId == dbSubject.Id && t.VisitNum > sv.VisitNum, u => new SubjectVisit() { VisitExecuted = VisitExecutedEnum.Unavailable }); }