|
|
<if test="deptId != null ">and FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )</if>
|
|
<if test="deptId != null ">and FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )</if>
|
|
|
<if test="deptName != null and deptName != ''">and dept_name like concat('%', #{deptName}, '%')</if>
|
|
<if test="deptName != null and deptName != ''">and dept_name like concat('%', #{deptName}, '%')</if>
|
|
|
order by a.start_time desc,a.create_time desc
|
|
order by a.start_time desc,a.create_time desc
|