|
@@ -65,6 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
where d.dept_id = #{deptId}
|
|
where d.dept_id = #{deptId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectDeptByDeptName" parameterType="string" resultMap="SysDeptResult">
|
|
|
|
+ select * from sys_dept where dept_name = #{deptName}
|
|
|
|
+ </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'
|
|
</select>
|
|
</select>
|