发放问题

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
@Transactional
public void grantChatCoupon(Long id, Long shopUserId, Long userId) {
ChatCoupon coupon = getOne(QueryWrapper.create()
.eq(ChatCoupon::getId, id)
.eq(ChatCoupon::getShopId, shopUserId)
);
ChatCoupon coupon = getById(id);
if (coupon == null) {
throw new CzgException("活动不存在");
}