Fix(EditService): Fix get wrong tool detail

Fix get wrong tool detail in source page
This commit is contained in:
2024-04-26 16:31:44 +08:00
parent eeb3c0a687
commit bdd0197d78
3 changed files with 6 additions and 6 deletions

View File

@@ -195,6 +195,7 @@
<choose>
<when test="operator == null">
and tsu.username = #{username}
and t_b_tool_main.publish != 0
</when>
<otherwise>
<choose>
@@ -206,11 +207,13 @@
</when>
<otherwise>
and tsu.username = #{username}
and t_b_tool_main.publish != 0
</otherwise>
</choose>
</otherwise>
</choose>
</where>
order by t_b_tool_main.id desc
limit 1
</select>
</mapper>