活动赠送券 日志

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)
.orderBy(ShopActivate::getGiftAmount, false)
.one();
log.info("赠送活动:{}", activate);
if (ObjectUtil.isNull(activate)) {
return;
}
log.info("赠送活动:{}", activate);
//赠送优惠券
if (activate.getIsGiftCoupon() == 1 && StrUtil.isNotBlank(activate.getCoupons())) {
Map<Long, Integer> couponUseMap = JSONObject.parseObject(activate.getCoupons(), new TypeReference<>() {