Commit b6823ca9 by jinxin

群发统计sql修改

parent 211cb85d
...@@ -235,17 +235,20 @@ ...@@ -235,17 +235,20 @@
SELECT SELECT
count(*) count(*)
FROM FROM
tab_haoban_group_chat_plan_owner_log tab_haoban_group_chat_plan_owner_log a
left join tab_haoban_group_chat_plan b on a.plan_id = b.plan_id
WHERE WHERE
enterprise_id = #{enterpriseId} a.enterprise_id = #{enterpriseId}
<if test="null != storeId"> <if test="null != storeId">
AND store_id = #{storeId} AND a.store_id = #{storeId}
</if> </if>
<if test="null != clerkId"> <if test="null != clerkId">
AND clerk_id = #{clerkId} AND a.clerk_id = #{clerkId}
</if> </if>
AND send_status = 1 AND a.send_status = 1
AND delete_flag = 0 AND a.delete_flag = 0
AND b.delete_flag = 0
AND b.status_flag = 1
</select> </select>
......
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