From 42e9c11b7214e14441428b31fbb972fb63e18cd4 Mon Sep 17 00:00:00 2001 From: "{872297557@qq.com}" <872297557@qq.com> Date: Fri, 9 Dec 2022 17:54:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0UAT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Domain/SQLFile/UAT.sql | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/IRaCIS.Core.Domain/SQLFile/UAT.sql b/IRaCIS.Core.Domain/SQLFile/UAT.sql index d56281d73..265c67112 100644 --- a/IRaCIS.Core.Domain/SQLFile/UAT.sql +++ b/IRaCIS.Core.Domain/SQLFile/UAT.sql @@ -33,3 +33,32 @@ update ReadingQuestionCriterionTrial set DigitPlaces=-1 where DigitPlaces=3 -- Dictionary UserTypeMenu Menu FrontAuditConfig ReadingQuestionCriterionSystem ReadingTableQuestionSystem + +--阅片标准维护 +update DataInspection set ObjectRelationParentId3 = (select top 1 TrialReadingCriterionId from SubjectUser where Id =DataInspection.GeneralId) where EntityName='SubjectUser' +update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from ReadingPeriodSet where Id =DataInspection.GeneralId) where EntityName='ReadingPeriodSet' +update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from ReadModule where Id =DataInspection.GeneralId) where EntityName='ReadModule' +update DataInspection set ObjectRelationParentId2 = (select top 1 TrialReadingCriterionId from TaskConsistentRule where Id =DataInspection.GeneralId) where EntityName='TaskConsistentRule' +update DataInspection set ObjectRelationParentId3 = (select top 1 TrialReadingCriterionId from VisitTask where Id =DataInspection.GeneralId) where EntityName='VisitTask' + +update ReadingTableQuestionTrial set DictionaryCode='' where DictionaryCode is null + + + + +--维护RowInfo的OrderMark + +select * from ReadingTableAnswerRowInfo +update ReadingTableAnswerRowInfo set ReadingTableAnswerRowInfo.OrderMark=ReadingQuestionTrial.OrderMark from ReadingQuestionTrial +inner join ReadingTableAnswerRowInfo on ReadingTableAnswerRowInfo.QuestionId=ReadingQuestionTrial.Id + + + +delete ReadingTableQuestionAnswer where TableQuestionId in (select id from ReadingTableQuestionTrial where QuestionMark=3) +go +delete ReadingTableQuestionTrial where QuestionMark=3 +go +delete ReadingTableQuestionSystem where QuestionMark=3 +go + +