feat:服务号通知

This commit is contained in:
苏竹红
2025-10-16 15:44:09 +08:00
parent 7be3958624
commit 1a416ce4b4
9 changed files with 153 additions and 64 deletions

View File

@@ -195,4 +195,23 @@
</foreach>
</update>
<select id="selectLastBindRecord" resultType="com.cool.store.dto.wechat.ServiceAccountOpenIdDTO">
select
b.partner_id,
b.union_id,
.service_account_open_id,
MAX(b.update_time)
from xfsg_partner_user_info a
left join xfsg_partner_user_wechat_bind b
on a.partner_id = b.partner_id
where b.partner_id is not null
and service_account_open_id is not null
<if test="mobileList !=null and mobileList.size>0">
<foreach collection="mobileList" open="and mobile in (" close=")" separator="," item="mobile">
#{mobile}
</foreach>
</if>
GROUP BY b.partner_id
</select>
</mapper>