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}