update 支付宝小程序

This commit is contained in:
Guoqs
2024-06-13 14:12:15 +08:00
parent 5a72797b06
commit 15cf6ccc6e
2 changed files with 23 additions and 4 deletions

View File

@@ -75,7 +75,9 @@ public interface PileMerchantInfoService {
* @param appId 微信小程序appId
* @return 一级运营商merchantId
*/
String getFirstLevelMerchantIdByWxAppId(String appId);
String getFirstLevelMerchantIdByWxAppId(String wechatAppId);
String getFirstLevelMerchantIdByAliAppId(String alipayAppId);
MerchantInfoVO getMerchantInfoVO(String merchantId);

View File

@@ -294,19 +294,36 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
/**
* 通过微信小程序appId查询一级运营商merchantId
* @param appId 微信小程序appId
* @param wechatAppId 微信小程序appId
* @return 一级运营商merchantId
*/
@Override
public String getFirstLevelMerchantIdByWxAppId(String appId) {
public String getFirstLevelMerchantIdByWxAppId(String wechatAppId) {
String merchantId = null;
PileMerchantInfo merchant = getFirstLevelMerchantByAppId(appId);
PileMerchantInfo merchant = getFirstLevelMerchantByAppId(wechatAppId);
if (Objects.nonNull(merchant)) {
merchantId = String.valueOf(merchant.getId());
}
return merchantId;
}
/**
* 通过支付宝小程序appId查询一级运营商merchantId
* @param alipayAppId 支付宝小程序appId
* @return 一级运营商merchantId
*/
@Override
public String getFirstLevelMerchantIdByAliAppId(String alipayAppId) {
String merchantId = null;
PileMerchantInfo merchant = getFirstLevelMerchantByAppId(alipayAppId);
if (Objects.nonNull(merchant)) {
merchantId = String.valueOf(merchant.getId());
}
return merchantId;
}
@Override
public MerchantInfoVO getMerchantInfoVO(String merchantId) {
PileMerchantInfo pileMerchantInfo = selectPileMerchantInfoById(Long.parseLong(merchantId));