| | |
| | | u.photo, |
| | | u.examination_type, |
| | | u.dispatch, |
| | | i.enterpriseName |
| | | bd.dept_name enterpriseName |
| | | FROM |
| | | blade_user u |
| | | LEFT JOIN sys_information i ON i.departmentid = u.dept_id |
| | | LEFT JOIN blade_dept bd ON bd.id = u.dept_id |
| | | WHERE |
| | | u.role_id = '1412226235153731586' |
| | | AND u.is_deleted = 0 |
| | | AND u.`status` =1 |
| | | AND u.`status` = 1 |
| | | and bd.is_deleted = 0 |
| | | <if test="deptid!=null and deptid!=''"> |
| | | and dept_id=#{deptid} |
| | | and (bd.id = #{deptid} or bd.parent_id = #{deptid}) |
| | | </if> |
| | | <if test="name!=null and name!=''"> |
| | | and real_name like concat('%', #{name},'%') |