<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mappernamespace="org.springblade.system.mapper.DeptMapper"><!-- 通用查询映射结果 --><resultMapid="deptResultMap"type="org.springblade.system.entity.Dept"><idcolumn="id"property="id"/><resultcolumn="parent_id"property="parentId"/><resultcolumn="dept_name"property="deptName"/><resultcolumn="full_name"property="fullName"/><resultcolumn="sort"property="sort"/><resultcolumn="remark"property="remark"/><resultcolumn="is_deleted"property="isDeleted"/></resultMap><resultMapid="treeNodeResultMap"type="org.springblade.core.tool.node.TreeNode"><idcolumn="id"property="id"/><resultcolumn="parent_id"property="parentId"/><resultcolumn="title"property="title"/><resultcolumn="value"property="value"/><resultcolumn="key"property="key"/></resultMap><!-- 通用查询结果列 --><sqlid="baseColumnList"> select id, parent_id, dept_name, full_name, sort, remark, is_deleted</sql><selectid="selectDeptPage"resultMap="deptResultMap"> select * from blade_dept where is_deleted = 0</select><selectid="tree"resultMap="treeNodeResultMap"> select id, parent_id, dept_name as title, id as `value`, id as `key` from blade_dept where is_deleted = 0</select></mapper>