Commit b752fd0f by xugaojun

Merge branch 'fix-02-21_group_send' of http://git.gicdev.com/haoban3.0/haoban-manage3.0

parents 813fac7b 0d7e0023
...@@ -393,16 +393,17 @@ ...@@ -393,16 +393,17 @@
ecr.external_user_id as memberExternalUserId, ecr.external_user_id as memberExternalUserId,
scr.wx_user_id as staffWxUserId, scr.wx_user_id as staffWxUserId,
scr.clerk_id as staffClerkId scr.clerk_id as staffClerkId
from (select staff_id, from (select a.staff_id,
wx_user_id, b.wx_user_id,
clerk_id a.clerk_id
from tab_haoban_staff_clerk_relation from tab_haoban_staff_clerk_relation a
where clerk_id in left join tab_haoban_staff b on a.staff_id = b.staff_id
where a.clerk_id in
<foreach collection="clerkIdList" item="item" separator="," open="(" close=")"> <foreach collection="clerkIdList" item="item" separator="," open="(" close=")">
#{item} #{item}
</foreach> </foreach>
and status_flag = 1 and a.status_flag = 1
group by staff_id, wx_user_id, clerk_id) as scr group by a.staff_id, a.wx_user_id, a.clerk_id) as scr
left join tab_haoban_external_clerk_related as ecr on scr.staff_id = ecr.staff_id left join tab_haoban_external_clerk_related as ecr on scr.staff_id = ecr.staff_id
where ecr.status_flag = 1 where ecr.status_flag = 1
and ecr.enterprise_id = #{enterpriseId,jdbcType=VARCHAR} and ecr.enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
......
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