9c5a18e3 张雷

修改孪生体查询关联BUG

1 个父辈 f744d3f8
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
24 l.rotate_z 24 l.rotate_z
25 FROM 25 FROM
26 fm_twin_manage m 26 fm_twin_manage m
27 LEFT JOIN fm_twin_location l ON m.twin_id = l.twin_id 27 LEFT JOIN ( SELECT * FROM fm_twin_location WHERE project_id = #{projectId} ) l ON m.twin_id = l.twin_id
28 WHERE 28 WHERE
29 m.del_flag = '1' 29 m.del_flag = '1'
30 AND m.project_id = #{projectId} 30 AND m.project_id = #{projectId}
...@@ -66,8 +66,8 @@ ...@@ -66,8 +66,8 @@
66 l.rotate_z 66 l.rotate_z
67 FROM 67 FROM
68 fm_twin_manage fm 68 fm_twin_manage fm
69 LEFT JOIN fm_twin_equip fe ON fm.twin_id = fe.twin_id 69 LEFT JOIN ( SELECT * FROM fm_twin_equip WHERE project_id = #{projectId} ) fe ON fm.twin_id = fe.twin_id
70 LEFT JOIN fm_twin_location l ON fm.twin_id = l.twin_id 70 LEFT JOIN ( SELECT * FROM fm_twin_location WHERE project_id = #{projectId} ) l ON fm.twin_id = l.twin_id
71 WHERE 71 WHERE
72 fm.project_id = #{projectId} 72 fm.project_id = #{projectId}
73 AND fm.twin_type = '设备' 73 AND fm.twin_type = '设备'
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!