|
@@ -61,12 +61,27 @@
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
<select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
|
|
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,d.remarks,d.address
|
|
|
|
- ,d.project_contact,d.bank_account_name,d.bank_of_deposit,d.account_number,
|
|
|
|
- (select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
|
|
- from sys_dept d
|
|
|
|
- where d.dept_id = #{deptId}
|
|
|
|
- </select>
|
|
|
|
|
|
+ select d.dept_id,
|
|
|
|
+ d.parent_id,
|
|
|
|
+ d.ancestors,
|
|
|
|
+ d.dept_name,
|
|
|
|
+ d.order_num,
|
|
|
|
+ d.leader,
|
|
|
|
+ d.phone,
|
|
|
|
+ d.email,
|
|
|
|
+ d.status,
|
|
|
|
+ d.remarks,
|
|
|
|
+ d.address
|
|
|
|
+ ,
|
|
|
|
+ d.project_contact,
|
|
|
|
+ d.bank_account_name,
|
|
|
|
+ d.bank_of_deposit,
|
|
|
|
+ d.account_number,
|
|
|
|
+ d.purchase_services,
|
|
|
|
+ (select dept_name from sys_dept where dept_id = d.parent_id) parent_name
|
|
|
|
+ from sys_dept d
|
|
|
|
+ where d.dept_id = #{deptId}
|
|
|
|
+ </select>
|
|
|
|
|
|
<select id="checkDeptExistUser" parameterType="Long" resultType="int">
|
|
<select id="checkDeptExistUser" parameterType="Long" resultType="int">
|
|
select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0'
|
|
select count(1) from sys_user where dept_id = #{deptId} and del_flag = '0'
|