|  | @@ -279,7 +279,7 @@
 | 
	
		
			
				|  |  |          LEFT JOIN company_user ON company_user.user_id = u.company_user_id
 | 
	
		
			
				|  |  |          LEFT JOIN company on company.company_id = company_user.company_id
 | 
	
		
			
				|  |  |          <where>
 | 
	
		
			
				|  |  | -        1 = 1
 | 
	
		
			
				|  |  | +        1 = 1 and u.nickname is not null
 | 
	
		
			
				|  |  |          <if test = "maps.userId != null" >
 | 
	
		
			
				|  |  |              AND u.user_id = #{maps.userId}
 | 
	
		
			
				|  |  |          </if >
 | 
	
	
		
			
				|  | @@ -306,6 +306,9 @@
 | 
	
		
			
				|  |  |          <if test = "maps.companyName != null and maps.companyName != '' " >
 | 
	
		
			
				|  |  |              AND company.company_name like CONCAT ("%",#{maps.companyName},"%")
 | 
	
		
			
				|  |  |          </if >
 | 
	
		
			
				|  |  | +            <if test = "maps.companyId != null and maps.companyId != '' " >
 | 
	
		
			
				|  |  | +                AND company.company_id = #{maps.companyId}
 | 
	
		
			
				|  |  | +            </if >
 | 
	
		
			
				|  |  |          <if test = "maps.level != null  and  maps.level !=''" >
 | 
	
		
			
				|  |  |          AND u.LEVEL = #{maps.level}
 | 
	
		
			
				|  |  |          </if >
 | 
	
	
		
			
				|  | @@ -324,7 +327,8 @@
 | 
	
		
			
				|  |  |          u.*,
 | 
	
		
			
				|  |  |          fcc.watch_course_count, fcc.part_course_count, company_user.nick_name AS companyUserNickName, fcc.last_watch_date
 | 
	
		
			
				|  |  |          ,company.company_name,
 | 
	
		
			
				|  |  | -        ucu.project_id
 | 
	
		
			
				|  |  | +        ucu.project_id,
 | 
	
		
			
				|  |  | +        ucu.id as companyUserId
 | 
	
		
			
				|  |  |          FROM
 | 
	
		
			
				|  |  |          fs_user u
 | 
	
		
			
				|  |  |          LEFT JOIN (
 | 
	
	
		
			
				|  | @@ -353,9 +357,12 @@
 | 
	
		
			
				|  |  |          LEFT JOIN company_user ON company_user.user_id = ucu.company_user_id
 | 
	
		
			
				|  |  |          LEFT JOIN company on company.company_id = company_user.company_id
 | 
	
		
			
				|  |  |          <where>
 | 
	
		
			
				|  |  | -        1 = 1
 | 
	
		
			
				|  |  | +        1 = 1 and u.nickname is not null
 | 
	
		
			
				|  |  |          <if test = "maps.nickname != null and  maps.nickname !='' " >
 | 
	
		
			
				|  |  |              AND u.nickname LIKE CONCAT("%",#{maps.nickname},"%")
 | 
	
		
			
				|  |  | +        </if >
 | 
	
		
			
				|  |  | +            <if test = "maps.userId != null and  maps.userId !='' " >
 | 
	
		
			
				|  |  | +            AND u.user_id = #{maps.userId}
 | 
	
		
			
				|  |  |          </if >
 | 
	
		
			
				|  |  |          <if test = "maps.phone != null   and  maps.phone !='' " >
 | 
	
		
			
				|  |  |          AND u.phone LIKE CONCAT("%",#{maps.phone},"%")
 | 
	
	
		
			
				|  | @@ -377,6 +384,9 @@
 | 
	
		
			
				|  |  |          <if test = "maps.companyName != null and maps.companyName != '' " >
 | 
	
		
			
				|  |  |              AND company.company_name like CONCAT ("%",#{maps.companyName},"%")
 | 
	
		
			
				|  |  |          </if >
 | 
	
		
			
				|  |  | +            <if test = "maps.companyId != null and maps.companyId != '' " >
 | 
	
		
			
				|  |  | +                AND company.company_id = #{maps.companyId}
 | 
	
		
			
				|  |  | +            </if >
 | 
	
		
			
				|  |  |          <if test = "maps.level != null  and  maps.level !=''" >
 | 
	
		
			
				|  |  |          AND u.LEVEL = #{maps.level}
 | 
	
		
			
				|  |  |          </if >
 |