diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java
index e7eb3411b..7dd8e58a5 100644
--- a/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java
+++ b/mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java
@@ -613,6 +613,9 @@ public class WxOrderServiceImpl implements WxOrderService {
throw new MallinkException(ErrorCode.COUPON_IS_NOT_FREE);
}
+ // 减库存操作
+ stockReduce(user, coupon, couponIdStr);
+
int payment = coupon.getSalePrice();
Date curr = new Date();
@@ -692,6 +695,9 @@ public class WxOrderServiceImpl implements WxOrderService {
throw new MallinkException(ErrorCode.COUPON_IS_NOT_FREE);
}
+ // 减库存操作
+ stockReduce(user, coupon, couponIdStr);
+
int payment = coupon.getSalePrice();
Date curr = new Date();
diff --git a/mallinkService/src/main/resources/mapper/WxCouponInjectMapper.xml b/mallinkService/src/main/resources/mapper/WxCouponInjectMapper.xml
index d0a898984..6309176f5 100644
--- a/mallinkService/src/main/resources/mapper/WxCouponInjectMapper.xml
+++ b/mallinkService/src/main/resources/mapper/WxCouponInjectMapper.xml
@@ -55,9 +55,9 @@
and `coupon_id` = #{couponId}
-
-
-
+
+
+
and `coupon_name` like concat('%', #{couponName},'%')