|  |  | @ -83,7 +83,8 @@ | 
			
		
	
		
			
				
					|  |  |  |             DISTRICT district, | 
			
		
	
		
			
				
					|  |  |  |             BUILDING_ADDRESS buildingAddress, | 
			
		
	
		
			
				
					|  |  |  |             NICKNAME nickname, | 
			
		
	
		
			
				
					|  |  |  |             HEAD_IMG_URL headImgUrl | 
			
		
	
		
			
				
					|  |  |  |             HEAD_IMG_URL headImgUrl, | 
			
		
	
		
			
				
					|  |  |  |             CREATED_TIME as regTime | 
			
		
	
		
			
				
					|  |  |  |         FROM user_base_info | 
			
		
	
		
			
				
					|  |  |  |         WHERE DEL_FLAG = '0' | 
			
		
	
		
			
				
					|  |  |  |         AND USER_ID = #{userId} | 
			
		
	
	
		
			
				
					|  |  | @ -181,7 +182,11 @@ | 
			
		
	
		
			
				
					|  |  |  |             ubi.DISTRICT district, | 
			
		
	
		
			
				
					|  |  |  |             ubi.BUILDING_ADDRESS buildingAddress, | 
			
		
	
		
			
				
					|  |  |  |             ubi.NICKNAME nickname, | 
			
		
	
		
			
				
					|  |  |  |             ubi.HEAD_IMG_URL headImgUrl | 
			
		
	
		
			
				
					|  |  |  |             ubi.HEAD_IMG_URL headImgUrl, | 
			
		
	
		
			
				
					|  |  |  |             rr.CREATED_TIME as regTime, | 
			
		
	
		
			
				
					|  |  |  |             rr.GRID_ID, | 
			
		
	
		
			
				
					|  |  |  |             rr.AGENCY_ID, | 
			
		
	
		
			
				
					|  |  |  |             ubi.ID_NUM as showIdNum | 
			
		
	
		
			
				
					|  |  |  |         FROM | 
			
		
	
		
			
				
					|  |  |  |             register_relation rr | 
			
		
	
		
			
				
					|  |  |  |                 LEFT JOIN user_base_info ubi ON ( rr.USER_ID = ubi.USER_ID ) | 
			
		
	
	
		
			
				
					|  |  | @ -189,6 +194,9 @@ | 
			
		
	
		
			
				
					|  |  |  |             rr.DEL_FLAG = '0' | 
			
		
	
		
			
				
					|  |  |  |           AND rr.CUSTOMER_ID = #{customerId} | 
			
		
	
		
			
				
					|  |  |  |           AND rr.FIRST_REGISTER = '1' | 
			
		
	
		
			
				
					|  |  |  |          <if test="userId != null and userId.trim() != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND rr.USER_ID = #{userId} | 
			
		
	
		
			
				
					|  |  |  |          </if> | 
			
		
	
		
			
				
					|  |  |  |           <if test="gridId != null and gridId.trim() != ''"> | 
			
		
	
		
			
				
					|  |  |  |               AND rr.GRID_ID = #{gridId} | 
			
		
	
		
			
				
					|  |  |  |           </if> | 
			
		
	
	
		
			
				
					|  |  | @ -196,7 +204,7 @@ | 
			
		
	
		
			
				
					|  |  |  |               AND rr.AGENCY_ID_PATH LIKE concat( '%', #{agencyId}, '%' ) | 
			
		
	
		
			
				
					|  |  |  |           </if> | 
			
		
	
		
			
				
					|  |  |  |           <if test="name != null and name.trim() != ''"> | 
			
		
	
		
			
				
					|  |  |  |               and rr.REAL_NAME like  concat( '%', #{name}, '%' ) | 
			
		
	
		
			
				
					|  |  |  |               and ubi.REAL_NAME like  concat( '%', #{name}, '%' ) | 
			
		
	
		
			
				
					|  |  |  |           </if> | 
			
		
	
		
			
				
					|  |  |  |           <if test="regStartTime != null and regStartTime != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND DATE_FORMAT( rr.CREATED_TIME, '%Y%m%d' ) >= #{regStartTime} | 
			
		
	
	
		
			
				
					|  |  | @ -204,5 +212,6 @@ | 
			
		
	
		
			
				
					|  |  |  |           <if test="regEndTime != null and regEndTime != ''"> | 
			
		
	
		
			
				
					|  |  |  |             AND DATE_FORMAT( rr.CREATED_TIME, '%Y%m%d' ) <= #{regEndTime} | 
			
		
	
		
			
				
					|  |  |  |           </if> | 
			
		
	
		
			
				
					|  |  |  |         order by rr.CREATED_TIME desc | 
			
		
	
		
			
				
					|  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  | 
 |