mirror of
https://gitee.com/zhijiantianya/ruoyi-vue-pro.git
synced 2025-12-26 08:26:44 +08:00
Merge remote-tracking branch 'origin/master-jdk17' into master-jdk17
This commit is contained in:
commit
005d64aae6
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user