|
|
|
@ -45,14 +45,14 @@
|
|
|
|
|
<select id="selectJoinDeptUser" parameterType="com.glxp.api.req.auth.FilterDeptUserReqeust"
|
|
|
|
|
resultType="com.glxp.api.res.auth.DeptUserResponse">
|
|
|
|
|
SELECT auth_dept_user.*,
|
|
|
|
|
auth_user.userName,
|
|
|
|
|
auth_user.employeeName,
|
|
|
|
|
auth_dept.`name` deptName,
|
|
|
|
|
auth_user.comments
|
|
|
|
|
auth_user.userName,
|
|
|
|
|
auth_user.employeeName,
|
|
|
|
|
auth_dept.`name` deptName,
|
|
|
|
|
auth_user.comments
|
|
|
|
|
FROM auth_dept_user
|
|
|
|
|
INNER JOIN auth_user
|
|
|
|
|
on auth_dept_user.userId = auth_user.id
|
|
|
|
|
INNER JOIN auth_dept on auth_dept_user.deptId = auth_dept.id
|
|
|
|
|
right JOIN auth_user
|
|
|
|
|
on auth_dept_user.userId = auth_user.id
|
|
|
|
|
left JOIN auth_dept on auth_dept_user.deptId = auth_dept.id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="deptId != null">
|
|
|
|
|
and deptId = #{deptId}
|
|
|
|
@ -62,9 +62,10 @@
|
|
|
|
|
</if>
|
|
|
|
|
<if test="key != null and key != ''">
|
|
|
|
|
and (auth_user.userName like concat('%', #{key}, '%') or
|
|
|
|
|
auth_user.employeeName like concat('%', #{key}, '%'))
|
|
|
|
|
auth_user.employeeName like concat('%', #{key}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by auth_dept_user.userId
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|