|
@@ -393,7 +393,7 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|
|
@Override
|
|
|
public ListingProductVO checkCoupon(String productId, String userId, String code) {
|
|
|
Prize prize = prizeService.getOne(new LambdaQueryWrapper<Prize>()
|
|
|
- .eq(Prize::getCode, code).eq(Prize::getUserId, userId).eq(Prize::getValidFlag, 1));
|
|
|
+ .eq(Prize::getCode, code).eq(Prize::getValidFlag, 1));
|
|
|
if (prize == null) {
|
|
|
log.error("优惠券不存在:{}", code);
|
|
|
throw new BackendRuntimeException(ExceptionEnum.EXCEPTION_COUPON_NOT_EXISTS);
|