发放问题
This commit is contained in:
@@ -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("活动不存在");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user