9c5a18e3 张雷

修改孪生体查询关联BUG

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