mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
update
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.jsowell.web.controller.pile;
|
package com.jsowell.web.controller.pile;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson2.JSON;
|
||||||
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
import com.huifu.adapay.core.exception.BaseAdaPayException;
|
||||||
import com.jsowell.adapay.dto.AdapayMemberInfoDTO;
|
import com.jsowell.adapay.dto.AdapayMemberInfoDTO;
|
||||||
import com.jsowell.adapay.service.AdapayMemberService;
|
import com.jsowell.adapay.service.AdapayMemberService;
|
||||||
@@ -28,7 +29,7 @@ public class AdapayMemberController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@PostMapping("/createAdapayMember")
|
@PostMapping("/createAdapayMember")
|
||||||
public AjaxResult createAdapayMember(@RequestBody AdapayMemberInfoDTO dto) {
|
public AjaxResult createAdapayMember(@RequestBody AdapayMemberInfoDTO dto) {
|
||||||
logger.info("创建汇付会员接口 param:{}", dto);
|
logger.info("创建汇付会员接口 param:{}", JSON.toJSONString(dto));
|
||||||
AjaxResult result;
|
AjaxResult result;
|
||||||
try {
|
try {
|
||||||
adapayMemberService.createMember(dto);
|
adapayMemberService.createMember(dto);
|
||||||
|
|||||||
@@ -138,12 +138,17 @@ public class AdapayMemberService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public AdapayMemberInfoVO selectAdapayMember(String merchantId) {
|
public AdapayMemberInfoVO selectAdapayMember(String merchantId) {
|
||||||
AdapayMemberInfo adapayMemberInfo = adapayMemberInfoService.selectByMerchantId(merchantId);
|
|
||||||
if (adapayMemberInfo == null) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
AdapayMemberInfoVO resultVO = new AdapayMemberInfoVO();
|
AdapayMemberInfoVO resultVO = new AdapayMemberInfoVO();
|
||||||
BeanUtils.copyProperties(adapayMemberInfo, resultVO);
|
AdapayMemberInfo adapayMemberInfo = adapayMemberInfoService.selectByMerchantId(merchantId);
|
||||||
|
if (adapayMemberInfo != null) {
|
||||||
|
BeanUtils.copyProperties(adapayMemberInfo, resultVO);
|
||||||
|
}
|
||||||
|
|
||||||
|
// 通过merchantId 查询出汇付会员id 和 结算账户id,用来查询余额
|
||||||
|
AdapaySettleAccount adapaySettleAccount = adapaySettleAccountService.selectByMerchantId(merchantId);
|
||||||
|
if (adapaySettleAccount != null) {
|
||||||
|
BeanUtils.copyProperties(adapaySettleAccount, resultVO);
|
||||||
|
}
|
||||||
return resultVO;
|
return resultVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,64 @@ public class AdapayMemberInfoVO {
|
|||||||
private String gender;
|
private String gender;
|
||||||
// 昵称
|
// 昵称
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 汇付会员id
|
||||||
|
*/
|
||||||
|
private String adapayMemberId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 结算账户对象 id
|
||||||
|
*/
|
||||||
|
private String settleAccountId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行卡号
|
||||||
|
*/
|
||||||
|
private String cardId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行卡对应的户名
|
||||||
|
*/
|
||||||
|
private String cardName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 证件号,银行账户类型为对私时,必填
|
||||||
|
*/
|
||||||
|
private String certId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 证件类型,仅支持:00-身份证,银行账户类型为对私时,必填
|
||||||
|
*/
|
||||||
|
private String certType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 手机号
|
||||||
|
*/
|
||||||
|
private String telNo;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行编码,详见附录 银行代码,银行账户类型对公时,必填
|
||||||
|
*/
|
||||||
|
private String bankCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 开户银行名称
|
||||||
|
*/
|
||||||
|
private String bankName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行账户类型:1-对公;2-对私
|
||||||
|
*/
|
||||||
|
private String bankAcctType;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行账户开户银行所在省份编码 (省市编码),银行账户类型为对公时,必填
|
||||||
|
*/
|
||||||
|
private String provCode;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 银行账户开户银行所在地区编码(省市编码),银行账户类型为对公时,必填
|
||||||
|
*/
|
||||||
|
private String areaCode;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user