fix(sys-dic-tree): 修复字典树查询状态过滤问题

- 在字典树查询中添加状态过滤条件 a.status = 0
- 确保只返回状态为可用的数据记录
- 修复了可能导致无效数据被查询到的逻辑缺陷
This commit is contained in:
xy
2026-06-29 11:44:38 +08:00
parent 709262c2b4
commit 88a99dbe9c

View File

@@ -15,5 +15,6 @@
sys_dic_tree b sys_dic_tree b
WHERE WHERE
b.pids LIKE concat('%',#{id},'%') and a.id = b.pid) b.pids LIKE concat('%',#{id},'%') and a.id = b.pid)
AND a.status = 0
</select> </select>
</mapper> </mapper>