Commit 6e1d26f9 by 王祖波

修改为近6个月

parent 341ae3b3
......@@ -65,7 +65,7 @@
<include refid="Base_Column_List" />
FROM tab_contact_follow
<where>
enterprise_id = #{enterpriseId} and delete_flag = 0 and follow_time >= now() - interval 1 year
enterprise_id = #{enterpriseId} and delete_flag = 0 and follow_time >= now() - interval 6 month
<if test="search.clerkId != null and search.clerkId != ''">
AND clerk_id = #{search.clerkId}
</if>
......@@ -87,7 +87,7 @@
INNER JOIN ( SELECT clerk_id, member_id, MAX( follow_time ) AS max_follow_time FROM tab_contact_follow WHERE
enterprise_id = #{enterpriseId}
and delete_flag = 0
and follow_time >= now() - interval 1 year
and follow_time >= now() - interval 6 month
and member_id IN
<foreach item="item" index="index" collection="memberIdList" open="(" separator="," close=")">
#{item}
......@@ -97,7 +97,7 @@
AND t.member_id = latest.member_id
AND t.follow_time = latest.max_follow_time
where t.enterprise_id = #{enterpriseId}
and t.delete_flag = 0 and t.follow_time >= now() - interval 1 year
and t.delete_flag = 0 and t.follow_time >= now() - interval 6 month
<if test="clerkId!=null and clerkId!=''">
and t.clerk_id = #{clerkId}
</if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment