feat: 修复校验字典code不准确问题

This commit is contained in:
Kang_Yang
2024-11-07 13:39:59 +08:00
parent b7420ff43d
commit 021954617e
3 changed files with 21 additions and 3 deletions

View File

@@ -47,4 +47,14 @@
ORDER BY
t1.create_time DESC
</select>
<!-- 获取指定字典编码对应的的数量 -->
<select id="getDictCodeCount" resultType="java.lang.Long">
SELECT
COUNT(*) AS total
FROM
sys_dict
WHERE
dict_code = #{dictCode}
</select>
</mapper>