|
|
@ -2,11 +2,11 @@
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
|
|
|
|
|
|
|
|
|
<mapper namespace="com.glxp.api.dao.auth.AuthAdminDao">
|
|
|
|
<mapper namespace="com.glxp.api.dao.auth.AuthAdminDao">
|
|
|
|
|
|
|
|
|
|
|
|
<select id="listAdminPage" parameterType="com.glxp.api.req.auth.FilterAuthUserRequest"
|
|
|
|
<select id="listAdminPage" parameterType="com.glxp.api.req.auth.FilterAuthUserRequest"
|
|
|
|
resultType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
resultType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
SELECT auth_user.*, auth_dept.name deptName
|
|
|
|
SELECT auth_user.*, auth_dept.name deptName
|
|
|
|
FROM auth_user left join auth_dept on auth_user.locDeptCode = auth_dept.code
|
|
|
|
FROM auth_user
|
|
|
|
|
|
|
|
left join auth_dept on auth_user.locDeptCode = auth_dept.code
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="ids != null and ids.size > 0">
|
|
|
|
<if test="ids != null and ids.size > 0">
|
|
|
|
AND id IN
|
|
|
|
AND id IN
|
|
|
@ -24,7 +24,11 @@
|
|
|
|
AND userName != #{neUserName}
|
|
|
|
AND userName != #{neUserName}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
|
|
|
<if test="lastUpdateTime != null and lastUpdateTime != ''">
|
|
|
|
<![CDATA[ and DATE_FORMAT(lastModifyTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
<![CDATA[
|
|
|
|
|
|
|
|
and DATE_FORMAT(lastModifyTime
|
|
|
|
|
|
|
|
, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}
|
|
|
|
|
|
|
|
, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
|
|
|
]]>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="deptCode != null and deptCode != ''">
|
|
|
|
<if test="deptCode != null and deptCode != ''">
|
|
|
|
AND auth_user.locDeptCode = #{deptCode}
|
|
|
|
AND auth_user.locDeptCode = #{deptCode}
|
|
|
@ -175,17 +179,18 @@
|
|
|
|
<select id="selectNotSelectUser" resultType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
<select id="selectNotSelectUser" resultType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
select *
|
|
|
|
select *
|
|
|
|
from auth_user
|
|
|
|
from auth_user
|
|
|
|
|
|
|
|
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
userFlag != 0
|
|
|
|
userFlag != 0
|
|
|
|
|
|
|
|
|
|
|
|
<if test="userIds != null and userIds.size() != 0">
|
|
|
|
<if test="userIds != null and userIds.size() != 0">
|
|
|
|
|
|
|
|
|
|
|
|
and id not in
|
|
|
|
and id not in
|
|
|
|
|
|
|
|
|
|
|
|
<foreach collection="userIds" item="item" open="(" separator="," close=")">
|
|
|
|
<foreach collection="userIds" item="item" open="(" separator="," close=")">
|
|
|
|
#{item}
|
|
|
|
#{item}
|
|
|
|
</foreach>
|
|
|
|
</foreach>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -200,7 +205,6 @@
|
|
|
|
AND r.role_id = #{roleId}
|
|
|
|
AND r.role_id = #{roleId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -225,6 +229,5 @@
|
|
|
|
AND u.user_name LIKE concat('%', #{userName}, '%')
|
|
|
|
AND u.user_name LIKE concat('%', #{userName}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|