Skip to content

Commit

Permalink
fix: 使用字典时,仅查询启用状态字典
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Apr 13, 2024
1 parent c31f2a3 commit 17c795f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
SELECT t1.label, t1.value, t1.color
FROM sys_dict_item AS t1
LEFT JOIN sys_dict AS t2 ON t1.dict_id = t2.id
WHERE t2.code = #{dictCode}
ORDER BY t1.sort ASC
WHERE t1.status = 1 AND t2.code = #{dictCode}
ORDER BY t1.sort
</select>
</mapper>

0 comments on commit 17c795f

Please sign in to comment.