mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-13 14:57:16 +08:00
fix: 使用字典时,仅查询启用状态字典
This commit is contained in:
@@ -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>
|
Reference in New Issue
Block a user