新增运营商,添加alipayAppId

This commit is contained in:
Guoqs
2025-09-18 14:30:38 +08:00
parent f1aa28f658
commit 80a4c4f2fc
2 changed files with 9 additions and 0 deletions

View File

@@ -72,6 +72,11 @@ public class CreateMerchantDTO {
*/
private String appId;
/**
* 运营商的支付宝appId
*/
private String alipayAppId;
/**
* 部门id
*/

View File

@@ -163,13 +163,17 @@ public class PileMerchantInfoServiceImpl implements PileMerchantInfoService {
// 一级运营商取前端传来的appid二级运营商取父级的appid
String appId;
String alipayAppId;
if (StringUtils.equals(dto.getMerchantLevel(), Constants.TWO)) {
PileMerchantInfo firstLevelMerchant = selectPileMerchantInfoById(Long.parseLong(dto.getParentId()));
appId = firstLevelMerchant.getAppId();
alipayAppId = firstLevelMerchant.getAlipayAppId();
} else {
appId = dto.getAppId();
alipayAppId = dto.getAlipayAppId();
}
dto.setAppId(appId);
dto.setAlipayAppId(alipayAppId);
PileMerchantInfo pileMerchantInfo = new PileMerchantInfo();
BeanUtils.copyProperties(dto, pileMerchantInfo);