活动赠送券 日志

This commit is contained in:
2025-03-10 14:22:51 +08:00
parent 6545f98ab5
commit 0ddd267fb3

View File

@@ -85,10 +85,10 @@ public class ShopActivateServiceImpl extends ServiceImpl<ShopActivateMapper, Sho
.le(ShopActivate::getAmount, memAmount) .le(ShopActivate::getAmount, memAmount)
.orderBy(ShopActivate::getGiftAmount, false) .orderBy(ShopActivate::getGiftAmount, false)
.one(); .one();
log.info("赠送活动:{}", activate);
if (ObjectUtil.isNull(activate)) { if (ObjectUtil.isNull(activate)) {
return; return;
} }
log.info("赠送活动:{}", activate);
//赠送优惠券 //赠送优惠券
if (activate.getIsGiftCoupon() == 1 && StrUtil.isNotBlank(activate.getCoupons())) { if (activate.getIsGiftCoupon() == 1 && StrUtil.isNotBlank(activate.getCoupons())) {
Map<Long, Integer> couponUseMap = JSONObject.parseObject(activate.getCoupons(), new TypeReference<>() { Map<Long, Integer> couponUseMap = JSONObject.parseObject(activate.getCoupons(), new TypeReference<>() {