跟进次数

This commit is contained in:
苏竹红
2023-07-25 15:00:00 +08:00
committed by feng.li
parent dd575d8638
commit 1c258a8d2c

View File

@@ -579,7 +579,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 or (deleted=0 and line_status in (0,3) and close_time is not null and investment_manager is not null)) where (deleted = 1 or (deleted=0 and line_status in (0,3) and close_time is not null )) and investment_manager is not null
<if test="partnerIdList!=null and partnerIdList.size>0"> <if test="partnerIdList!=null and partnerIdList.size>0">
<foreach collection="partnerIdList" item="partnerId" open="and partner_id in (" close=")" separator=","> <foreach collection="partnerIdList" item="partnerId" open="and partner_id in (" close=")" separator=",">
#{partnerId} #{partnerId}
@@ -605,7 +605,7 @@
<select id="getLineFollowHistoryList" resultMap="BaseResultMap"> <select id="getLineFollowHistoryList" resultMap="BaseResultMap">
SELECT <include refid="Base_Column_List"></include> SELECT <include refid="Base_Column_List"></include>
FROM hy_partner_line_info FROM hy_partner_line_info
where (deleted = 1 or (deleted=0 and line_status in (0,3) and close_time is not null and investment_manager is not null)) where (deleted = 1 or (deleted=0 and line_status in (0,3) and close_time is not null )) and investment_manager is not null
and partner_id = #{partner_id} and partner_id = #{partner_id}
order by id desc order by id desc
</select> </select>