diff --git a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java index 666b2764d..37a1c1331 100644 --- a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java +++ b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/PayServiceImpl.java @@ -181,7 +181,7 @@ public class PayServiceImpl implements PayService { private ShopMerchant getMerchant(Long shopId) { try { - ShopMerchant shopMerchant = shopMerchantService.getById(shopId); + ShopMerchant shopMerchant = shopMerchantService.getOne(new QueryWrapper().eq(ShopMerchant::getShopId, shopId)); if (shopMerchant == null || StrUtil.isBlank(shopMerchant.getChannel())) { throw new CzgException("暂未开通支付"); }