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