diff --git a/cash-common/cash-common-service/src/main/java/com/czg/order/service/ShopMerchantService.java b/cash-common/cash-common-service/src/main/java/com/czg/order/service/ShopMerchantService.java index b5e7b12e5..fa67d0c72 100644 --- a/cash-common/cash-common-service/src/main/java/com/czg/order/service/ShopMerchantService.java +++ b/cash-common/cash-common-service/src/main/java/com/czg/order/service/ShopMerchantService.java @@ -8,8 +8,6 @@ import com.mybatisflex.core.service.IService; import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; -import java.io.Serializable; - /** * 第三方商户进件 服务层。 * @@ -32,8 +30,7 @@ public interface ShopMerchantService extends IService { */ void upMerchant(@NotBlank String relatedLicenceNo, @NotNull NativeMerchantDTO nativeMerchantDTO); - @Override - ShopMerchant getById(Serializable id); + ShopMerchant getById(Long shopId); ShopDirectMerchant getMainMerchant(Long shopId); 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 37a1c1331..b0b1f2023 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,9 +181,9 @@ public class PayServiceImpl implements PayService { private ShopMerchant getMerchant(Long shopId) { try { - ShopMerchant shopMerchant = shopMerchantService.getOne(new QueryWrapper().eq(ShopMerchant::getShopId, shopId)); + ShopMerchant shopMerchant = shopMerchantService.getById(shopId); if (shopMerchant == null || StrUtil.isBlank(shopMerchant.getChannel())) { - throw new CzgException("暂未开通支付"); + throw new CzgException("暂未开通支付!"); } if (shopMerchant.getChannel().equals(PayChannelCst.NATIVE)) { if (StrUtil.isNotBlank(shopMerchant.getNativePayJson())) { @@ -198,7 +198,7 @@ public class PayServiceImpl implements PayService { } return shopMerchant; } catch (Exception e) { - throw new CzgException("暂未开通支付"); + throw new CzgException("该店铺暂未开通支付!"); } } diff --git a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/ShopMerchantServiceImpl.java b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/ShopMerchantServiceImpl.java index 7fc34917e..83132d179 100644 --- a/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/ShopMerchantServiceImpl.java +++ b/cash-service/order-service/src/main/java/com/czg/service/order/service/impl/ShopMerchantServiceImpl.java @@ -24,8 +24,6 @@ import org.springframework.cache.annotation.CacheEvict; import org.springframework.cache.annotation.Cacheable; import org.springframework.stereotype.Service; -import java.io.Serializable; - /** * 第三方商户进件 服务层实现。 * @@ -113,9 +111,9 @@ public class ShopMerchantServiceImpl extends ServiceImpl