更新UAT
parent
bbb08f7527
commit
42e9c11b72
|
@ -33,3 +33,32 @@ update ReadingQuestionCriterionTrial set DigitPlaces=-1 where DigitPlaces=3
|
||||||
-- Dictionary UserTypeMenu Menu FrontAuditConfig ReadingQuestionCriterionSystem ReadingTableQuestionSystem
|
-- 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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue