|
|
@@ -23,6 +23,7 @@
|
|
23
|
23
|
<result property="deptType" column="dept_type"/>
|
|
24
|
24
|
<result property="deptTypeDesc" column="dept_type_desc"/>
|
|
25
|
25
|
<result property="brigadeNature" column="brigade_nature"/>
|
|
|
26
|
+ <result property="isFunctionalDept" column="is_functional_dept"/>
|
|
26
|
27
|
</resultMap>
|
|
27
|
28
|
|
|
28
|
29
|
<sql id="selectDeptVo">
|
|
|
@@ -40,7 +41,8 @@
|
|
40
|
41
|
d.create_time,
|
|
41
|
42
|
d.dept_type,
|
|
42
|
43
|
d.dept_type_desc,
|
|
43
|
|
- d.brigade_nature
|
|
|
44
|
+ d.brigade_nature,
|
|
|
45
|
+ d.is_functional_dept
|
|
44
|
46
|
from sys_dept d
|
|
45
|
47
|
</sql>
|
|
46
|
48
|
|
|
|
@@ -68,6 +70,9 @@
|
|
68
|
70
|
<if test="brigadeNature != null and brigadeNature != ''">
|
|
69
|
71
|
AND brigade_nature = #{brigadeNature}
|
|
70
|
72
|
</if>
|
|
|
73
|
+ <if test="isFunctionalDept != null and isFunctionalDept != ''">
|
|
|
74
|
+ AND is_functional_dept = #{isFunctionalDept}
|
|
|
75
|
+ </if>
|
|
71
|
76
|
<!-- 数据范围过滤 -->
|
|
72
|
77
|
${params.dataScope}
|
|
73
|
78
|
order by d.parent_id, d.order_num
|
|
|
@@ -98,6 +103,7 @@
|
|
98
|
103
|
d.dept_type,
|
|
99
|
104
|
d.dept_type_desc,
|
|
100
|
105
|
d.brigade_nature,
|
|
|
106
|
+ d.is_functional_dept,
|
|
101
|
107
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
102
|
108
|
from sys_dept d
|
|
103
|
109
|
where d.dept_id = #{deptId}
|
|
|
@@ -163,6 +169,7 @@
|
|
163
|
169
|
<if test="deptType != null and deptType != ''">dept_type,</if>
|
|
164
|
170
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">dept_type_desc,</if>
|
|
165
|
171
|
<if test="brigadeNature != null and brigadeNature != ''">brigade_nature,</if>
|
|
|
172
|
+ <if test="isFunctionalDept != null and isFunctionalDept != ''">is_functional_dept,</if>
|
|
166
|
173
|
create_time
|
|
167
|
174
|
)values(
|
|
168
|
175
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
|
@@ -178,6 +185,7 @@
|
|
178
|
185
|
<if test="deptType != null and deptType != ''">#{deptType},</if>
|
|
179
|
186
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">#{deptTypeDesc},</if>
|
|
180
|
187
|
<if test="brigadeNature != null and brigadeNature != ''">#{brigadeNature},</if>
|
|
|
188
|
+ <if test="isFunctionalDept != null and isFunctionalDept != ''">#{isFunctionalDept},</if>
|
|
181
|
189
|
sysdate()
|
|
182
|
190
|
)
|
|
183
|
191
|
</insert>
|
|
|
@@ -197,6 +205,7 @@
|
|
197
|
205
|
<if test="deptType != null and deptType != ''">dept_type = #{deptType},</if>
|
|
198
|
206
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">dept_type_desc = #{deptTypeDesc},</if>
|
|
199
|
207
|
<if test="brigadeNature != null and brigadeNature != ''">brigade_nature = #{brigadeNature},</if>
|
|
|
208
|
+ <if test="isFunctionalDept != null and isFunctionalDept != ''">is_functional_dept = #{isFunctionalDept},</if>
|
|
200
|
209
|
update_time = sysdate()
|
|
201
|
210
|
</set>
|
|
202
|
211
|
where dept_id = #{deptId}
|
|
|
@@ -264,6 +273,7 @@
|
|
264
|
273
|
d.dept_type,
|
|
265
|
274
|
d.dept_type_desc,
|
|
266
|
275
|
d.brigade_nature,
|
|
|
276
|
+ d.is_functional_dept,
|
|
267
|
277
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
268
|
278
|
from sys_dept d
|
|
269
|
279
|
where d.dept_id in
|