|
@@ -13,11 +13,11 @@
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="selectAcLinkCorpTemplateCouponIdsByTagIds" resultType="java.lang.Long">
|
|
<select id="selectAcLinkCorpTemplateCouponIdsByTagIds" resultType="java.lang.Long">
|
|
|
- select distinct ct.coupon_id from (select msg_id from corp_customer_acquisition_link
|
|
|
|
|
|
|
+ select distinct ct.coupon_ids from (select msg_id from corp_customer_acquisition_link
|
|
|
where msg_id != 0 and tags != '[]' and
|
|
where msg_id != 0 and tags != '[]' and
|
|
|
<foreach collection="tagIds" item="item" open="(" separator="OR" close=")">
|
|
<foreach collection="tagIds" item="item" open="(" separator="OR" close=")">
|
|
|
JSON_CONTAINS(tags, '"${item}"')
|
|
JSON_CONTAINS(tags, '"${item}"')
|
|
|
</foreach>)s inner join corp_welcome_template ct on ct.id = s.msg_id
|
|
</foreach>)s inner join corp_welcome_template ct on ct.id = s.msg_id
|
|
|
- where ct.coupon_id is not null
|
|
|
|
|
|
|
+ where ct.coupon_ids is not null
|
|
|
</select>
|
|
</select>
|
|
|
</mapper>
|
|
</mapper>
|