@@ -1421,6 +1421,12 @@
<if test="cpId != null">
tpp.cp_id = #{cpId}
</if>
+ <if test="staffIds != null and staffIds.size()>0">
+ AND tpp.staff_id = any(#{staffIds, typeHandler=uuidListTypeHandler})
+ </if>
+ <if test="orgIds != null and orgIds.size() > 0">
+ AND tpp.org_id = any(#{orgIds, typeHandler=uuidListTypeHandler})
</where>
</sql>
<!-- 销售跟踪表 列表查询 -->