|
|
|
@@ -160,6 +160,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
//查询总库存 |
|
|
|
WxCoupon queryById = new WxCoupon(); |
|
|
|
queryById.setId(record.getCouponId()); |
|
|
|
queryById.updateTenantInfo(record); |
|
|
|
WxCoupon wxCouponOfDb = wxCouponService.findById(queryById); |
|
|
|
if (Objects.isNull(wxCouponOfDb)) { |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
@@ -196,6 +197,7 @@ public class WxCouponSendServiceImpl implements WxCouponSendService { |
|
|
|
//查询总库存 |
|
|
|
WxCoupon queryById = new WxCoupon(); |
|
|
|
queryById.setId(record.getCouponId()); |
|
|
|
queryById.updateTenantInfo(record); |
|
|
|
WxCoupon wxCouponOfDb = wxCouponService.findById(queryById); |
|
|
|
if (Objects.isNull(wxCouponOfDb)) { |
|
|
|
throw new MallinkException(ErrorCode.COUPON_IS_EMPTY); |
|
|
|
|