Переглянути джерело

coupons

release_toaliyun_real
xhxu 5 роки тому
джерело
коміт
a24f57b267
2 змінених файлів з 9 додано та 0 видалено
  1. +3
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java
  2. +6
    -0
      mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml

+ 3
- 0
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<Long> merchantIds;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value = "用户积分", name = "userCredit")
private Integer userCredit;


+ 6
- 0
mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml Переглянути файл

@@ -236,6 +236,12 @@
<if test="merchantId != null">
and cm.merchant_id=#{merchantId}
</if>
<if test=" null != merchantIds ">
and cm.merchant_id in
<foreach collection="merchantIds" index="index" item="merchantIdsItem" open="(" separator="," close=")">
#{merchantIdsItem}
</foreach>
</if>
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)


Завантаження…
Відмінити
Зберегти