Prechádzať zdrojové kódy

fix 获客链接优惠券获取

zoujiajian 2 rokov pred
rodič
commit
e4ef55fe2a

+ 2 - 2
netflix-dao/src/main/resources/mapper/CorpCustomerAcquisitionLinkMapper.xml

@@ -13,11 +13,11 @@
     </select>
 
     <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
         <foreach collection="tagIds" item="item" open="(" separator="OR" close=")">
             JSON_CONTAINS(tags, '"${item}"')
         </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>
 </mapper>