|
@@ -103,7 +103,8 @@
|
|
|
LEFT JOIN ${database_system}.sys_dept d ON a.dept_id = d.dept_id
|
|
|
WHERE
|
|
|
a.type = #{leadType}
|
|
|
- AND a.post = #{dictType}
|
|
|
+ <if test="dictType != null and dictType != ''">AND a.post = #{dictType}</if>
|
|
|
+ <if test="name != null and name != ''">AND a.name like concat('%', #{name}, '%')</if>
|
|
|
<choose>
|
|
|
<when test="deptId != null and deptId != ''">and FIND_IN_SET( #{deptId}, CONCAT(d.ancestors,',',d.dept_id) )</when>
|
|
|
<otherwise>${params.dataScope}</otherwise>
|