Commit d6ea4ce3 by 王祖波

clerkId可选

parent dfaca7e0
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
INNER JOIN ( SELECT clerk_id, member_id, MAX( follow_time ) AS max_follow_time FROM tab_contact_follow WHERE INNER JOIN ( SELECT clerk_id, member_id, MAX( follow_time ) AS max_follow_time FROM tab_contact_follow WHERE
enterprise_id = #{enterpriseId} enterprise_id = #{enterpriseId}
and delete_flag = 0 and delete_flag = 0
and clerk_id = #{clerkId}
and member_id IN and member_id IN
<foreach item="item" index="index" collection="memberIdList" open="(" separator="," close=")"> <foreach item="item" index="index" collection="memberIdList" open="(" separator="," close=")">
#{item} #{item}
...@@ -97,7 +96,9 @@ ...@@ -97,7 +96,9 @@
AND t.follow_time = latest.max_follow_time AND t.follow_time = latest.max_follow_time
where t.enterprise_id = #{enterpriseId} where t.enterprise_id = #{enterpriseId}
and t.delete_flag = 0 and t.delete_flag = 0
and t.clerk_id = #{clerkId} <if test="clerkId!=null and clerkId!=''">
and t.clerk_id = #{clerkId}
</if>
and t.member_id IN and t.member_id IN
<foreach item="item" index="index" collection="memberIdList" open="(" separator="," close=")"> <foreach item="item" index="index" collection="memberIdList" open="(" separator="," close=")">
#{item} #{item}
......
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