|
|
@@ -22,6 +22,7 @@
|
|
22
|
22
|
<result property="updateTime" column="update_time"/>
|
|
23
|
23
|
<result property="deptType" column="dept_type"/>
|
|
24
|
24
|
<result property="deptTypeDesc" column="dept_type_desc"/>
|
|
|
25
|
+ <result property="brigadeNature" column="brigade_nature"/>
|
|
25
|
26
|
</resultMap>
|
|
26
|
27
|
|
|
27
|
28
|
<sql id="selectDeptVo">
|
|
|
@@ -38,7 +39,8 @@
|
|
38
|
39
|
d.create_by,
|
|
39
|
40
|
d.create_time,
|
|
40
|
41
|
d.dept_type,
|
|
41
|
|
- d.dept_type_desc
|
|
|
42
|
+ d.dept_type_desc,
|
|
|
43
|
+ d.brigade_nature
|
|
42
|
44
|
from sys_dept d
|
|
43
|
45
|
</sql>
|
|
44
|
46
|
|
|
|
@@ -63,6 +65,9 @@
|
|
63
|
65
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">
|
|
64
|
66
|
AND dept_type_desc = #{deptTypeDesc}
|
|
65
|
67
|
</if>
|
|
|
68
|
+ <if test="brigadeNature != null and brigadeNature != ''">
|
|
|
69
|
+ AND brigade_nature = #{brigadeNature}
|
|
|
70
|
+ </if>
|
|
66
|
71
|
<!-- 数据范围过滤 -->
|
|
67
|
72
|
${params.dataScope}
|
|
68
|
73
|
order by d.parent_id, d.order_num
|
|
|
@@ -92,6 +97,7 @@
|
|
92
|
97
|
d.status,
|
|
93
|
98
|
d.dept_type,
|
|
94
|
99
|
d.dept_type_desc,
|
|
|
100
|
+ d.brigade_nature,
|
|
95
|
101
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
96
|
102
|
from sys_dept d
|
|
97
|
103
|
where d.dept_id = #{deptId}
|
|
|
@@ -156,6 +162,7 @@
|
|
156
|
162
|
<if test="createBy != null and createBy != ''">create_by,</if>
|
|
157
|
163
|
<if test="deptType != null and deptType != ''">dept_type,</if>
|
|
158
|
164
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">dept_type_desc,</if>
|
|
|
165
|
+ <if test="brigadeNature != null and brigadeNature != ''">brigade_nature,</if>
|
|
159
|
166
|
create_time
|
|
160
|
167
|
)values(
|
|
161
|
168
|
<if test="deptId != null and deptId != 0">#{deptId},</if>
|
|
|
@@ -170,6 +177,7 @@
|
|
170
|
177
|
<if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
171
|
178
|
<if test="deptType != null and deptType != ''">#{deptType},</if>
|
|
172
|
179
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">#{deptTypeDesc},</if>
|
|
|
180
|
+ <if test="brigadeNature != null and brigadeNature != ''">#{brigadeNature},</if>
|
|
173
|
181
|
sysdate()
|
|
174
|
182
|
)
|
|
175
|
183
|
</insert>
|
|
|
@@ -188,6 +196,7 @@
|
|
188
|
196
|
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
189
|
197
|
<if test="deptType != null and deptType != ''">dept_type = #{deptType},</if>
|
|
190
|
198
|
<if test="deptTypeDesc != null and deptTypeDesc != ''">dept_type_desc = #{deptTypeDesc},</if>
|
|
|
199
|
+ <if test="brigadeNature != null and brigadeNature != ''">brigade_nature = #{brigadeNature},</if>
|
|
191
|
200
|
update_time = sysdate()
|
|
192
|
201
|
</set>
|
|
193
|
202
|
where dept_id = #{deptId}
|
|
|
@@ -254,6 +263,7 @@
|
|
254
|
263
|
d.status,
|
|
255
|
264
|
d.dept_type,
|
|
256
|
265
|
d.dept_type_desc,
|
|
|
266
|
+ d.brigade_nature,
|
|
257
|
267
|
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
258
|
268
|
from sys_dept d
|
|
259
|
269
|
where d.dept_id in
|