Procházet zdrojové kódy

[精准发券][修改][减库存]

release_toaliyun_real
gongbiao před 7 roky
rodič
revize
ab642418bd
2 změnil soubory, kde provedl 9 přidání a 3 odebrání
  1. +6
    -0
      mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java
  2. +3
    -3
      mallinkService/src/main/resources/mapper/WxCouponInjectMapper.xml

+ 6
- 0
mallinkService/src/main/java/com/iformall/service/impl/WxOrderServiceImpl.java Zobrazit soubor

@@ -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();


+ 3
- 3
mallinkService/src/main/resources/mapper/WxCouponInjectMapper.xml Zobrazit soubor

@@ -55,9 +55,9 @@
<if test=" null != couponId ">
and `coupon_id` = #{couponId}
</if>
<if test=" null != couponName ">
</if>
<if test=" null != couponName and couponName!=''">
and `coupon_name` like concat('%', #{couponName},'%')
</if>


Načítá se…
Zrušit
Uložit