| 
					
				 | 
			
			
				@@ -16,12 +16,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		u.*, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		( SELECT d.NAME FROM sys_dept d WHERE d.dept_id = u.dept_id ) deptName,m.merch_name merchName,s.store_name storeName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		ur.role_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		ur.role_id,r.role_name roleName 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		sys_user u 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		LEFT JOIN sys_user_role ur ON u.user_id = ur.user_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		left join mall_merch m on m.merch_sn = u.merch_sn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		left join mall_store s on s.id = u.store_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		left join sys_role r on r.role_id = ur.role_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="createUserId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				and `create_user_id` = #{createUserId}  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -120,15 +121,15 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="mobile != null">`mobile` = #{mobile}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="status != null">`status` = #{status}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="deptId != null">`dept_id` = #{deptId}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="storeId != null">`store_id` = #{storeId}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="merchSn != null">`merch_sn` = #{merchSn}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="thirdPartyMerchCode != null">`third_party_merch_code` = #{thirdPartyMerchCode}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			`store_id` = #{storeId}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			`merch_sn` = #{merchSn}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			`third_party_merch_code` = #{thirdPartyMerchCode}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<if test="roleType != null">`role_type` = #{roleType}, </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		where user_id = #{userId}  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<if test="createUserId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			and `create_user_id` = #{createUserId}  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<!--<if test="createUserId != null">--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<!--and `create_user_id` = #{createUserId} --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		<!--</if>--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<update id="updatePassword" parameterType="map"> 
			 |