|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
<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') >= DATE_FORMAT(#{lastUpdateTime}
|
|
|
|
|
, '%Y-%m-%d %H:%i:%S')
|
|
|
|
|
]]>
|
|
|
|
|
</if>
|
|
|
|
@ -38,7 +38,6 @@
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
ORDER BY id DESC
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="findByUserName" parameterType="hashmap" resultType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
@ -69,8 +68,9 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertAuthAdmin" keyProperty="id" parameterType="com.glxp.api.entity.auth.AuthAdmin">
|
|
|
|
|
INSERT INTO auth_user( id,userName, passWord, lastLoginIp, lastLoginTime, createTime, userFlag
|
|
|
|
|
, employeeName, CustomerId, lastModifyTime, locDeptCode, locInvCode, comments)
|
|
|
|
|
INSERT INTO auth_user( id, userName, passWord, lastLoginIp, lastLoginTime, createTime, userFlag
|
|
|
|
|
, employeeName, CustomerId, lastModifyTime, locDeptCode, locInvCode, comments
|
|
|
|
|
, lastUpdatePwdTime)
|
|
|
|
|
values
|
|
|
|
|
(#{id}, #{userName},
|
|
|
|
|
<choose>
|
|
|
|
@ -105,15 +105,15 @@
|
|
|
|
|
#{CustomerId},
|
|
|
|
|
#{lastModifyTime},
|
|
|
|
|
#{locDeptCode},
|
|
|
|
|
#{locInvCode}, #{comments})
|
|
|
|
|
#{locInvCode}, #{comments}, #{lastUpdatePwdTime})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<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, lastUpdatePwdTime)
|
|
|
|
|
values (#{id},
|
|
|
|
|
#{userName},
|
|
|
|
|
#{passWord},
|
|
|
|
|
#{lastLoginIp},
|
|
|
|
@ -125,8 +125,7 @@
|
|
|
|
|
#{CustomerId},
|
|
|
|
|
#{locDeptCode},
|
|
|
|
|
#{locInvCode},
|
|
|
|
|
#{comments}
|
|
|
|
|
)
|
|
|
|
|
#{comments}, #{lastUpdatePwdTime})
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -148,6 +147,9 @@
|
|
|
|
|
<if test="lastModifyTime != null">
|
|
|
|
|
lastModifyTime=#{lastModifyTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lastUpdatePwdTime != null">
|
|
|
|
|
lastUpdatePwdTime=#{lastUpdatePwdTime},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userFlag != null">
|
|
|
|
|
userFlag=#{userFlag},
|
|
|
|
|
</if>
|
|
|
|
@ -191,14 +193,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=")">
|
|
|
|
|