修复确认退款报错和取消订单定时任务报错

This commit is contained in:
wusongwen 2025-08-20 19:44:30 +08:00
parent 236d953692
commit 16efe7b6aa

View File

@ -166,6 +166,10 @@ public class CouponServiceImpl implements CouponService {
public void invalidateCouponsByAdmin(List<Long> giveCouponIds, Long userId) {
// 循环收回
for (Long couponId : giveCouponIds) {
// couponId为空或0则跳过
if (null == couponId || couponId <= 0) {
continue;
}
try {
getSelf().invalidateCoupon(couponId, userId);
} catch (Exception e) {