EI-Image-Viewer-Api/表同步 注意.txt

31 lines
896 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

阅片相关表
OrganInfo,
ReadingQuestionCriterionSystem,
ReadingQuestionSystem,
ReadingTableQuestionSystem,
CriterionNidus,
ReadingCriterionDictionary,
ReadingMedicineSystemQuestion,
TumorAssessment
注意
CriterionNidus 和
ReadingCriterionDictionary 只用同步系统数据 IsSystemCriterion
可以 删除 在添加
delete CriterionNidus where IsSystemCriterion=1
delete ReadingCriterionDictionary where IsSystemCriterion=1
插入完成之后
delete CriterionNidus where   (select count(1) as num from ReadingQuestionCriterionTrial where ReadingQuestionCriterionTrial.Id = CriterionNidus.CriterionId) = 0 and IsSystemCriterion=0
delete ReadingCriterionDictionary where   (select count(1) as num from ReadingQuestionCriterionTrial where ReadingQuestionCriterionTrial.Id = ReadingCriterionDictionary.CriterionId) = 0 and IsSystemCriterion=0