From ab516a299420e3c97eaa46bd3f7f0e95eb7bdb0c Mon Sep 17 00:00:00 2001 From: gongbiao Date: Wed, 27 Feb 2019 19:17:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8D=A1=E8=BD=AC=E8=B5=A0][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9][=E6=9F=A5=E8=AF=A2]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/domain/po/WxCouponChannel.java | 16 ++++++++++++---- .../resources/mapper/WxCouponChannelMapper.xml | 5 +++++ 2 files changed, 17 insertions(+), 4 deletions(-) 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