1.用户查询未过滤已删除数据

This commit is contained in:
cuizhibin 2025-08-14 21:19:03 +08:00
parent 1232ed4eac
commit aa204a2345
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@
FROM user u
LEFT JOIN dept d ON u.dept_id = d.dept_id
<where>
u.del_flag = 0
<if test="userCode != null and userCode != ''">
AND u.user_code LIKE CONCAT('%', #{userCode}, '%')
</if>