This commit is contained in:
he
2023-03-10 16:03:11 +08:00
parent 34cd92cd6f
commit 8187f20111
+6
View File
@@ -988,3 +988,9 @@ where ReadModule.Id = VisitTask.SouceReadModuleId
and (SubjectVisit.PDState=1 or SubjectVisit.IsEnrollmentConfirm=1)
) != 0
------------------------维护GroupId
update ReadingQuestionTrial set GroupId= (select top 1 id from ReadingQuestionTrial a where a.Type='group' and a.GroupName=ReadingQuestionTrial.GroupName and a.ReadingQuestionCriterionTrialId=ReadingQuestionTrial.ReadingQuestionCriterionTrialId) where ReadingQuestionTrial.Type!='group'
update ReadingQuestionSystem set GroupId= (select top 1 id from ReadingQuestionSystem a where a.Type='group' and a.GroupName=ReadingQuestionSystem.GroupName and a.ReadingQuestionCriterionSystemId=ReadingQuestionSystem.ReadingQuestionCriterionSystemId) where ReadingQuestionSystem.Type!='group'