mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-13 01:31:53 +08:00
【代码评审】商城:满减送订单
This commit is contained in:
@@ -48,8 +48,8 @@ public class CouponApiImpl implements CouponApi {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void takeBackCouponsByAdmin(Map<Long, Integer> giveCouponsMap, Long userId) {
|
||||
couponService.takeBackCouponsByAdmin(giveCouponsMap, userId);
|
||||
public void invalidateCouponsByAdmin(Map<Long, Integer> giveCouponsMap, Long userId) {
|
||||
couponService.invalidateCouponsByAdmin(giveCouponsMap, userId);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -119,7 +119,7 @@ public interface CouponService {
|
||||
* @param giveCouponsMap key: 优惠劵编号,value:对应的优惠券数量
|
||||
* @param userId 用户编号
|
||||
*/
|
||||
void takeBackCouponsByAdmin(Map<Long, Integer> giveCouponsMap, Long userId);
|
||||
void invalidateCouponsByAdmin(Map<Long, Integer> giveCouponsMap, Long userId);
|
||||
|
||||
/**
|
||||
* 【会员】领取优惠券
|
||||
|
@@ -198,7 +198,7 @@ public class CouponServiceImpl implements CouponService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void takeBackCouponsByAdmin(Map<Long, Integer> giveCouponsMap, Long userId) {
|
||||
public void invalidateCouponsByAdmin(Map<Long, Integer> giveCouponsMap, Long userId) {
|
||||
// 循环收回
|
||||
for (Map.Entry<Long, Integer> entry : giveCouponsMap.entrySet()) {
|
||||
try {
|
||||
|
Reference in New Issue
Block a user