mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 支付宝小程序
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user