| @@ -1042,7 +1042,9 @@ public class WxOrderServiceImpl implements WxOrderService { | |||||
| boolean isChannelStockReduce = false; | boolean isChannelStockReduce = false; | ||||
| boolean isChannelPrice = false; | boolean isChannelPrice = false; | ||||
| Integer currentPrice = coupon.getSalePrice(); | Integer currentPrice = coupon.getSalePrice(); | ||||
| Long couponChannelId = null; | |||||
| if (null != couponChannel ) { | if (null != couponChannel ) { | ||||
| couponChannelId = couponChannel.getId(); | |||||
| if (null != couponChannel.getChannelStock()) { | if (null != couponChannel.getChannelStock()) { | ||||
| isChannelStockReduce = true; | isChannelStockReduce = true; | ||||
| } | } | ||||
| @@ -1051,9 +1053,9 @@ public class WxOrderServiceImpl implements WxOrderService { | |||||
| isChannelPrice = true; | isChannelPrice = true; | ||||
| } | } | ||||
| } | } | ||||
| if (isChannelStockReduce) { | if (isChannelStockReduce) { | ||||
| setCouponChanenlStockCache(couponChannel.getId(), coupon.getTitle(),coupon.getTenantId()); | |||||
| setCouponChanenlStockCache(couponChannelId, coupon.getTitle(),coupon.getTenantId()); | |||||
| }else { | }else { | ||||
| setCouponStockCache(coupon.getId(),coupon.getTitle(),coupon.getTenantId()); | setCouponStockCache(coupon.getId(),coupon.getTitle(),coupon.getTenantId()); | ||||
| // 检查 优惠券 库存 | // 检查 优惠券 库存 | ||||
| @@ -1108,7 +1110,7 @@ public class WxOrderServiceImpl implements WxOrderService { | |||||
| isReduceStock = false; | isReduceStock = false; | ||||
| } | } | ||||
| if (isReduceStock) { | if (isReduceStock) { | ||||
| wxOrderServiceHelper.reduceStock(isChannelStockReduce,coupon,couponChannel.getId(), number); | |||||
| wxOrderServiceHelper.reduceStock(isChannelStockReduce,coupon,couponChannelId, number); | |||||
| } | } | ||||
| reduceResult.setChannelStockReduce(isChannelStockReduce); | reduceResult.setChannelStockReduce(isChannelStockReduce); | ||||
| reduceResult.setCurrentPrice(currentPrice); | reduceResult.setCurrentPrice(currentPrice); | ||||