mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-23 07:41:53 +08:00
修复优惠券回收后,领取数量和剩余数量不更新的问题
This commit is contained in:
parent
257e3c6ae3
commit
04fdc70f58
@ -140,8 +140,8 @@ public class CouponServiceImpl implements CouponService {
|
|||||||
if (deleteCount == 0) {
|
if (deleteCount == 0) {
|
||||||
throw exception(COUPON_DELETE_FAIL_USED);
|
throw exception(COUPON_DELETE_FAIL_USED);
|
||||||
}
|
}
|
||||||
// 减少优惠劵模板的领取数量 -1
|
// 传入优惠券模板ID,减少优惠劵模板的领取数量 -1
|
||||||
couponTemplateService.updateCouponTemplateTakeCount(id, -1);
|
couponTemplateService.updateCouponTemplateTakeCount(couponMapper.selectById(id).getTemplateId(), -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user