!1409 修复确认退款报错和取消订单定时任务报错
Merge pull request !1409 from sunway/fix-20250820
This commit is contained in:
@@ -166,6 +166,10 @@ public class CouponServiceImpl implements CouponService {
|
|||||||
public void invalidateCouponsByAdmin(List<Long> giveCouponIds, Long userId) {
|
public void invalidateCouponsByAdmin(List<Long> giveCouponIds, Long userId) {
|
||||||
// 循环收回
|
// 循环收回
|
||||||
for (Long couponId : giveCouponIds) {
|
for (Long couponId : giveCouponIds) {
|
||||||
|
// couponId为空或0则跳过
|
||||||
|
if (null == couponId || couponId <= 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
getSelf().invalidateCoupon(couponId, userId);
|
getSelf().invalidateCoupon(couponId, userId);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user