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 9c8938a2f..c0f41831a 100644 --- a/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java +++ b/mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java @@ -1,11 +1,11 @@ package com.iformall.domain.po; -import javax.persistence.*; -import java.util.*; -import javax.persistence.Transient; -import java.util.List; import javax.persistence.Id; +import javax.persistence.Table; +import javax.persistence.Transient; import java.io.Serializable; +import java.util.Date; +import java.util.List; @Table(name = "wx_coupon_channel") public class WxCouponChannel implements Serializable { @@ -49,6 +49,8 @@ public class WxCouponChannel implements Serializable { @Transient private Date enddate; + @Transient + private Integer supportTransfer; @Transient protected List couponIds; @@ -197,7 +199,13 @@ public class WxCouponChannel implements Serializable { this.enddate = enddate; } + public Integer getSupportTransfer() { + return supportTransfer; + } + public void setSupportTransfer(Integer supportTransfer) { + this.supportTransfer = supportTransfer; + } public static enum Field { diff --git a/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml index 4da19c3fa..46379e439 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponChannelMapper.xml @@ -76,6 +76,11 @@ and cc.`sub_target_id` = #{subTargetId} + + + and c.`support_transfer` = #{supportTransfer} + + and cc.id in