新客立减

This commit is contained in:
2025-09-18 16:55:24 +08:00
parent e4c6a7082e
commit 95d2c0d809
5 changed files with 33 additions and 20 deletions

View File

@@ -203,7 +203,7 @@ public class MkShopCouponRecordServiceImpl extends ServiceImpl<MkShopCouponRecor
}
@Override
public Boolean grant(Long shopId, MkRewardCouponDTO rewardCouponDTO) {
public Boolean grant(Long shopId, MkRewardCouponDTO rewardCouponDTO) {
ShopUser shopUser = shopUserService.getOne(new QueryWrapper().eq(ShopUser::getShopId, shopId).eq(ShopUser::getUserId, rewardCouponDTO.getUserId()));
MkShopCouponGiftDTO giftDTO = new MkShopCouponGiftDTO().setCouponId(rewardCouponDTO.getCouponId())
.setShopId(shopId)