1.查询用户修改模糊查询

master
x_z 2 years ago
parent 5ae0c76f29
commit 3ed574424e

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

Loading…
Cancel
Save