From a24f57b2673824978b152ff14286665eb3e43d9f Mon Sep 17 00:00:00 2001 From: xhxu Date: Fri, 12 Mar 2021 11:24:15 +0800 Subject: [PATCH] coupons --- .../main/java/com/iformall/domain/po/WxCouponChannel.java | 3 +++ .../src/main/resources/mapper/WxCouponChannelMapper.xml | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java b/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java index 7d8e41dd8..f3089ba20 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java @@ -89,6 +89,9 @@ public class WxCouponChannel extends TenantEntity { @TableField(exist = false) private Long merchantId; + @TableField(exist = false) + private List merchantIds; + @TableField(exist = false) @io.swagger.annotations.ApiModelProperty(value = "用户积分", name = "userCredit") private Integer userCredit; diff --git a/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml index cb22ecc73..5922e88bf 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml @@ -236,6 +236,12 @@ and cm.merchant_id=#{merchantId} + + and cm.merchant_id in + + #{merchantIdsItem} + + left join wx_coupon c on cc.coupon_id = c.id left join wx_merchant mer on cm.merchant_id = mer.id where cc.`target_ad` in (1,2,5,6,7)