跟进次数

This commit is contained in:
苏竹红
2023-07-25 13:49:54 +08:00
parent 6569ee1313
commit 46b80b379f

View File

@@ -580,6 +580,11 @@
SELECT partner_id, IFNULL(COUNT(1), 0) AS followCount
FROM hy_partner_line_info
where (deleted = 1 or (deleted=0 and line_status=0 and close_time is not null and investment_manager is not null))
<if test="partnerIdList!=null and partnerIdList.size>0">
<foreach collection="partnerIdList" item="partnerId" open="and partner_id in (" close=")" separator=",">
#{partnerId}
</foreach>
</if>
GROUP BY partner_id;
</select>