xiebin
2022-09-19 d1b8bbac98cb22a3d918d387e962a23a0d998c55
业务字典api查询增加排序
1 files modified
3 ■■■■■ changed files
src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml 3 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/system/mapper/DictBizMapper.xml
@@ -38,14 +38,17 @@
    <select id="getList" resultMap="dictResultMap">
        select id, tenant_id, parent_id, code, dict_key, dict_value, sort, remark from blade_dict_biz where code = #{param1} and parent_id > 0 and is_sealed = 0 and is_deleted = 0
        ORDER BY sort ASC
    </select>
    <select id="tree" resultMap="treeNodeResultMap">
        select id, parent_id, dict_value as title, id as "value", id as "key" from blade_dict_biz where is_deleted = 0
        ORDER BY sort ASC
    </select>
    <select id="parentTree" resultMap="treeNodeResultMap">
        select id, parent_id, dict_value as title, id as "value", id as "key" from blade_dict_biz where is_deleted = 0 and parent_id = 0
        ORDER BY sort ASC
    </select>
</mapper>