commit
0e9827e5a0
|
@ -178,6 +178,9 @@ public class CouponServiceImpl implements CouponService {
|
|||
*/
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void invalidateCoupon(Long couponId, Long userId) {
|
||||
if (couponId == null || couponId <= 0) {
|
||||
return;
|
||||
}
|
||||
// 1.1 校验优惠券
|
||||
CouponDO coupon = couponMapper.selectByIdAndUserId(couponId, userId);
|
||||
if (coupon == null) {
|
||||
|
|
Loading…
Reference in New Issue