| | |
| | | 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 |
| | | </select> |
| | | |
| | | <!--获取字典-根据父id及code--> |
| | | <select id="getListByParentId" resultMap="dictResultMap"> |
| | | select id, tenant_id, parent_id, code, dict_key, dict_value, sort, remark from blade_dict_biz |
| | | where parent_id in( |
| | | select id from blade_dict_biz where parent_id > 0 and is_sealed = 0 and is_deleted = 0 |
| | | and code like concat(concat('%',#{param1}),'%') and parent_id = #{param2} |
| | | ) |
| | | </select> |
| | | |
| | | </mapper> |