发放问题

This commit is contained in:
2025-12-05 13:50:46 +08:00
parent 1c28787c36
commit e345c409dd

View File

@@ -95,10 +95,7 @@ public class ChatCouponServiceImpl extends ServiceImpl<ChatCouponMapper, ChatCou
@Override @Override
@Transactional @Transactional
public void grantChatCoupon(Long id, Long shopUserId, Long userId) { public void grantChatCoupon(Long id, Long shopUserId, Long userId) {
ChatCoupon coupon = getOne(QueryWrapper.create() ChatCoupon coupon = getById(id);
.eq(ChatCoupon::getId, id)
.eq(ChatCoupon::getShopId, shopUserId)
);
if (coupon == null) { if (coupon == null) {
throw new CzgException("活动不存在"); throw new CzgException("活动不存在");
} }