|
|
|
@ -19,7 +19,7 @@
|
|
|
|
|
AND userFlag = #{userFlag}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userName != null and '' != userName">
|
|
|
|
|
AND userName LIKE CONCAT(#{userName}, '%')
|
|
|
|
|
AND userName LIKE CONCAT('%', #{userName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="neUserName != null and '' != neUserName">
|
|
|
|
|
AND userName != #{neUserName}
|
|
|
|
@ -119,9 +119,9 @@
|
|
|
|
|
<insert id="replaceAuthAdmin" keyProperty="id" parameterType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
|
replace
|
|
|
|
|
INTO auth_user(id, userName, passWord, lastLoginIp,
|
|
|
|
|
lastLoginTime, createTime, userFlag, lastModifyTime, employeeName,CustomerId,locDeptCode,locInvCode,comments)
|
|
|
|
|
values (
|
|
|
|
|
#{id},
|
|
|
|
|
lastLoginTime, createTime, userFlag, lastModifyTime, employeeName, CustomerId, locDeptCode,
|
|
|
|
|
locInvCode, comments)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{userName},
|
|
|
|
|
#{passWord},
|
|
|
|
|
#{lastLoginIp},
|
|
|
|
@ -133,8 +133,7 @@
|
|
|
|
|
#{CustomerId},
|
|
|
|
|
#{locDeptCode},
|
|
|
|
|
#{locInvCode},
|
|
|
|
|
#{comments}
|
|
|
|
|
)
|
|
|
|
|
#{comments})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -189,14 +188,14 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectNotSelectUser" resultType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
|
select *
|
|
|
|
|
from auth_user left join auth_dept_user on auth_user.id=auth_dept_user.userId
|
|
|
|
|
from auth_user
|
|
|
|
|
left join auth_dept_user on auth_user.id = auth_dept_user.userId
|
|
|
|
|
<where>
|
|
|
|
|
userFlag != 0
|
|
|
|
|
<if test="deptId != null and '' != deptId">
|
|
|
|
|
AND auth_dept_user.deptId = #{deptId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userIds != null and userIds.size() != 0">
|
|
|
|
|
|
|
|
|
|
and auth_user.id not in
|
|
|
|
|
|
|
|
|
|
<foreach collection="userIds" item="item" open="(" separator="," close=")">
|
|
|
|
@ -251,5 +250,4 @@
|
|
|
|
|
CustomerId = #{CustomerId}
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|