跟进次数
This commit is contained in:
@@ -547,7 +547,7 @@
|
|||||||
<select id="getFollowCountList" resultType="com.cool.store.dto.partner.LineCountDTO">
|
<select id="getFollowCountList" resultType="com.cool.store.dto.partner.LineCountDTO">
|
||||||
SELECT partner_id, IFNULL(COUNT(1), 0) AS followCount
|
SELECT partner_id, IFNULL(COUNT(1), 0) AS followCount
|
||||||
FROM hy_partner_line_info
|
FROM hy_partner_line_info
|
||||||
where deleted = 1
|
where (deleted = 1 or (deleted=0 and line_status=0 and close_time is not null))
|
||||||
GROUP BY partner_id;
|
GROUP BY partner_id;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user