@@ -1,36 +1,5 @@
USE `cdss`;
-SELECT
- *
-FROM
- tran_plan a
- LEFT JOIN tran_plan_detail b
- ON a.id = b.plan_id
-WHERE a.`hospital_id` = - 1
- AND a.`is_deleted` = "N"
- AND b.`is_deleted` = "N"
- AND a.`plan_code` IN (
- "plan_default",
- "patientia",
- "info",
- "chief",
- "symptom",
- "other",
- "vital",
- "lis",
- "pacs",
- "diag",
- "doc_advice",
- "reference_lis",
- "reference_pacs",
- "order_rational",
- "medical_advice",
- "medical_record"
- ) ;
-
DELETE
FROM
tran_plan_detail