支付参数3

This commit is contained in:
2026-01-15 14:04:36 +08:00
parent 5541ed5da4
commit 071e7f5c82
3 changed files with 4 additions and 4 deletions

View File

@@ -30,7 +30,7 @@ public interface ShopMerchantService extends IService<ShopMerchant> {
*/
void upMerchant(@NotBlank String relatedLicenceNo, @NotNull NativeMerchantDTO nativeMerchantDTO);
ShopMerchant getById(Long shopId);
ShopMerchant getByShopId(Long shopId);
ShopDirectMerchant getMainMerchant(Long shopId);

View File

@@ -181,7 +181,7 @@ public class PayServiceImpl implements PayService {
private ShopMerchant getMerchant(Long shopId) {
try {
ShopMerchant shopMerchant = shopMerchantService.getById(shopId);
ShopMerchant shopMerchant = shopMerchantService.getByShopId(shopId);
if (shopMerchant == null || StrUtil.isBlank(shopMerchant.getChannel())) {
throw new CzgException("暂未开通支付!");
}

View File

@@ -109,9 +109,9 @@ public class ShopMerchantServiceImpl extends ServiceImpl<ShopMerchantMapper, Sho
update(upShopMerchant, query().eq(ShopMerchant::getRelatedLicenceNo, relatedLicenceNo));
}
@Cacheable(key = "#id")
@Cacheable(key = "#shopId")
@Override
public ShopMerchant getById(Long shopId) {
public ShopMerchant getByShopId(Long shopId) {
ShopMerchant shopMerchant = getOne(query().eq(ShopMerchant::getShopId, shopId));
AssertUtil.isNull(shopMerchant, "暂未开通支付.");
return shopMerchant;