|  |  | @ -6,7 +6,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             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 |  |  |  |         FROM auth_user | 
			
		
	
		
		
			
				
					
					|  |  |  |                  left join auth_dept on auth_user.locDeptCode = auth_dept.code |  |  |  |                      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 | 
			
		
	
	
		
		
			
				
					|  |  | @ -29,8 +29,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="lastUpdateTime != null and lastUpdateTime != ''"> |  |  |  |             <if test="lastUpdateTime != null and lastUpdateTime != ''"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <![CDATA[ |  |  |  |                 <![CDATA[ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 and DATE_FORMAT(lastModifyTime |  |  |  |                 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') |  |  |  |                             , '%Y-%m-%d %H:%i:%S') | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |                 ]]> |  |  |  |                 ]]> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="deptCode != null and deptCode != ''"> |  |  |  |             <if test="deptCode != null and deptCode != ''"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -38,7 +38,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |         ORDER BY id DESC |  |  |  |         ORDER BY id DESC | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="findByUserName" parameterType="hashmap" resultType="com.glxp.api.entity.auth.AuthAdmin"> |  |  |  |     <select id="findByUserName" parameterType="hashmap" resultType="com.glxp.api.entity.auth.AuthAdmin"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -69,10 +68,11 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertAuthAdmin" keyProperty="id" parameterType="com.glxp.api.entity.auth.AuthAdmin"> |  |  |  |     <insert id="insertAuthAdmin" keyProperty="id" parameterType="com.glxp.api.entity.auth.AuthAdmin"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         INSERT INTO auth_user( id,userName, passWord, lastLoginIp, lastLoginTime, createTime, userFlag |  |  |  |         INSERT INTO auth_user( id, userName, passWord, lastLoginIp, lastLoginTime, createTime, userFlag | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                              , employeeName, CustomerId, lastModifyTime, locDeptCode, locInvCode, comments) |  |  |  |                              , employeeName, CustomerId, lastModifyTime, locDeptCode, locInvCode, comments | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         values |  |  |  |                              , lastUpdatePwdTime) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         (#{id}, #{userName}, |  |  |  |                 values | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 (#{id}, #{userName}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         <choose> |  |  |  |         <choose> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <when test="passWord != null"> |  |  |  |             <when test="passWord != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{passWord}, |  |  |  |                 #{passWord}, | 
			
		
	
	
		
		
			
				
					|  |  | @ -105,28 +105,27 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{CustomerId}, |  |  |  |         #{CustomerId}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{lastModifyTime}, |  |  |  |         #{lastModifyTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{locDeptCode}, |  |  |  |         #{locDeptCode}, | 
			
		
	
		
		
			
				
					
					|  |  |  |         #{locInvCode}, #{comments}) |  |  |  |         #{locInvCode}, #{comments}, #{lastUpdatePwdTime}) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <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, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         values ( |  |  |  |                                locDeptCode, locInvCode, comments, lastUpdatePwdTime) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{id}, |  |  |  |         values (#{id}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{userName}, |  |  |  |                 #{userName}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{passWord}, |  |  |  |                 #{passWord}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{lastLoginIp}, |  |  |  |                 #{lastLoginIp}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{lastLoginTime}, |  |  |  |                 #{lastLoginTime}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{createTime}, |  |  |  |                 #{createTime}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{userFlag,jdbcType=INTEGER}, |  |  |  |                 #{userFlag,jdbcType=INTEGER}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{lastModifyTime}, |  |  |  |                 #{lastModifyTime}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{employeeName}, |  |  |  |                 #{employeeName}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{CustomerId}, |  |  |  |                 #{CustomerId}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{locDeptCode}, |  |  |  |                 #{locDeptCode}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{locInvCode}, |  |  |  |                 #{locInvCode}, | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         #{comments} |  |  |  |                 #{comments}, #{lastUpdatePwdTime}) | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         ) |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -148,6 +147,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="lastModifyTime != null"> |  |  |  |             <if test="lastModifyTime != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 lastModifyTime=#{lastModifyTime}, |  |  |  |                 lastModifyTime=#{lastModifyTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             <if test="lastUpdatePwdTime != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 lastUpdatePwdTime=#{lastUpdatePwdTime}, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             </if> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="userFlag != null"> |  |  |  |             <if test="userFlag != null"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 userFlag=#{userFlag}, |  |  |  |                 userFlag=#{userFlag}, | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |             </if> | 
			
		
	
	
		
		
			
				
					|  |  | @ -191,14 +193,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=")"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -213,8 +215,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.entity.auth.AuthAdmin"> |  |  |  |             resultType="com.glxp.api.entity.auth.AuthAdmin"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select u.* |  |  |  |         select u.* | 
			
		
	
		
		
			
				
					
					|  |  |  |         from auth_user u |  |  |  |         from auth_user u | 
			
		
	
		
		
			
				
					
					|  |  |  |                  left join auth_user_role sur on u.id = sur.user_id |  |  |  |                      left join auth_user_role sur on u.id = sur.user_id | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  left join auth_role r on r.role_id = sur.role_id |  |  |  |                      left join auth_role r on r.role_id = sur.role_id | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="roleId != null and '' != roleId"> |  |  |  |             <if test="roleId != null and '' != roleId"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND r.role_id = #{roleId} |  |  |  |                 AND r.role_id = #{roleId} | 
			
		
	
	
		
		
			
				
					|  |  | @ -227,8 +229,8 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.entity.auth.AuthAdmin"> |  |  |  |             resultType="com.glxp.api.entity.auth.AuthAdmin"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select u.* |  |  |  |         select u.* | 
			
		
	
		
		
			
				
					
					|  |  |  |         from auth_user u |  |  |  |         from auth_user u | 
			
		
	
		
		
			
				
					
					|  |  |  |                  left join auth_user_role sur on u.id = sur.user_id |  |  |  |                      left join auth_user_role sur on u.id = sur.user_id | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                  left join auth_role r on r.role_id = sur.role_id |  |  |  |                      left join auth_role r on r.role_id = sur.role_id | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="ids != null and ids.size() != 0"> |  |  |  |             <if test="ids != null and ids.size() != 0"> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 u.id not in |  |  |  |                 u.id not in | 
			
		
	
	
		
		
			
				
					|  |  | 
 |