From e403934c11ded6a732a66def0a7863ccbfea9768 Mon Sep 17 00:00:00 2001 From: luozukai Date: Mon, 18 Mar 2019 19:07:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E8=90=A5=E9=94=80=E5=88=86=E6=9E=90][?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0][=E5=8D=A1=E8=90=A5=E9=94=80=E5=88=97?= =?UTF-8?q?=E8=A1=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/domain/vo/WxCouponOrderBVo.java | 13 +++++++++++++ .../main/resources/mapper/WxCouponOrderMapper.xml | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java index 7ef6d87de..bcc1a0b91 100644 --- a/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java +++ b/mallinkService/src/main/java/com/iformall/domain/vo/WxCouponOrderBVo.java @@ -119,6 +119,9 @@ public class WxCouponOrderBVo extends WxCouponOrder{ @Transient private Long couponId; + @Transient + private Integer couponType; + @Override public Long getCouponId() { @@ -130,6 +133,16 @@ public class WxCouponOrderBVo extends WxCouponOrder{ this.couponId = couponId; } + @Override + public Integer getCouponType() { + return couponType; + } + + @Override + public void setCouponType(Integer couponType) { + this.couponType = couponType; + } + public Date getStartDate() { return startDate; } diff --git a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml index de03b1fb9..a952b36f4 100644 --- a/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCouponOrderMapper.xml @@ -326,7 +326,14 @@ and tcm.status = 0) as mc from wx_coupon_order tco) com where com.tcoid = co.id - and co.coupon_type < 100 + + + and co.coupon_type = #{couponType} + + + and co.coupon_type < 100 + + and c.id = co.coupon_id and co.tenant_id = #{tenantId}