SQL调整

This commit is contained in:
2023-10-31 12:34:51 +08:00
parent ca75ef7102
commit 8699e95f1c

View File

@@ -96,9 +96,9 @@
from
cs_equipment_delivery t0
left join
cs_dev_model_relation t1 on t0.id = t1.dev_id
cs_dev_model_relation t1 on t0.id = t1.dev_id and t1.status = 1
left join
cs_dev_model t2 on t1.model_id = t2.id
cs_dev_model t2 on t1.model_id = t2.id and t2.status = 1
left join cs_data_set t3 on t3.pid = t2.id
left join cs_data_array t4 on t3.id = t4.pid
where