修改孪生体查询关联BUG
正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
... | @@ -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 = '设备' | ... | ... |
-
请 注册 或 登录 后发表评论