Fix(ManagementMapper): Fix the bug that query duplicate ID

This commit is contained in:
2024-05-12 04:44:24 +08:00
parent c107f4c8e0
commit 0af1660215

View File

@@ -64,7 +64,7 @@
</select> </select>
<select id="selectPage" resultType="long"> <select id="selectPage" resultType="long">
select t_b_tool_main.id select distinct t_b_tool_main.id
from t_b_tool_main from t_b_tool_main
left join (select * from t_s_user where deleted = 0) as tsu on tsu.id = t_b_tool_main.author_id left join (select * from t_s_user where deleted = 0) as tsu on tsu.id = t_b_tool_main.author_id
left join (select * from t_s_user_info where deleted = 0) as tsui on tsui.user_id = t_b_tool_main.author_id left join (select * from t_s_user_info where deleted = 0) as tsui on tsui.user_id = t_b_tool_main.author_id