优化系统字典值查询

This commit is contained in:
1378012178@qq.com 2025-11-17 13:34:43 +08:00
parent fc4fc29d57
commit 8231629e3f
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@
<sql id="queryTableDictWithFilterSqlFragment">
select ${text} as "text", ${code} as "value"
<if test="'1'.equals(ena) || ena == 1 || ena == '1'">
,(case iz_enabled when 'Y' then 0 else 1 end) as status
,(case iz_enabled when 'Y' then 0 when 0 then 0 when 1 then 1 else 1 end) as status
</if>
from ${table}
<if test="filterSql != null and filterSql != ''">