<#--查询所有员工弹窗-->

select 
bu.id, 
bu.id as userid,
bu.username, 
bu.realname,
up.in_postid, 
up.position_status, 
up.contract_stime
 from t_s_base_user bu 
 LEFT JOIN t_bus_user_personnel up  ON bu.ID=up.userid
 WHERE 1=1 
<#if (userAndUserPersonnelDto.realname )?? && userAndUserPersonnelDto.realname ?length gt 0>
	 and bu.realname like CONCAT('%', :userAndUserPersonnelDto.realname ,'%') 
</#if>
 and bu.delete_flag='0' 





