|
|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
9
|
9
|
<result property="parentId" column="parent_id" />
|
|
10
|
10
|
<result property="ancestors" column="ancestors" />
|
|
11
|
11
|
<result property="deptName" column="dept_name" />
|
|
|
12
|
+ <result property="deptType" column="dept_type" />
|
|
12
|
13
|
<result property="orderNum" column="order_num" />
|
|
13
|
14
|
<result property="leader" column="leader" />
|
|
14
|
15
|
<result property="phone" column="phone" />
|
|
|
@@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
23
|
24
|
</resultMap>
|
|
24
|
25
|
|
|
25
|
26
|
<sql id="selectDeptVo">
|
|
26
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
|
|
27
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.dept_type,d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
|
|
27
|
28
|
from sys_dept d
|
|
28
|
29
|
</sql>
|
|
29
|
30
|
|
|
|
@@ -59,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
59
|
60
|
</select>
|
|
60
|
61
|
|
|
61
|
62
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
62
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,
|
|
|
63
|
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name,d.dept_type, d.order_num, d.leader, d.phone, d.email, d.status,
|
|
63
|
64
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
64
|
65
|
from sys_dept d
|
|
65
|
66
|
where d.dept_id = #{deptId}
|