银行卡绑定
This commit is contained in:
parent
763b4d9202
commit
5de6f3e79d
|
|
@ -14,7 +14,9 @@ import com.huifu.adapay.core.exception.BaseAdaPayException;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
@ -37,7 +39,8 @@ public class CustomerBankController {
|
||||||
* 个人账户绑定银行卡接口
|
* 个人账户绑定银行卡接口
|
||||||
*/
|
*/
|
||||||
@PostMapping("bind")
|
@PostMapping("bind")
|
||||||
private AjaxResult bindBankCard(BindBankCardRequest request) throws BaseAdaPayException {
|
@ResponseBody
|
||||||
|
private AjaxResult bindBankCard(@RequestBody BindBankCardRequest request) throws BaseAdaPayException {
|
||||||
Set<Merchant> merchants = AdapayConfig.getMerchants();
|
Set<Merchant> merchants = AdapayConfig.getMerchants();
|
||||||
for (Merchant merchant : merchants) {
|
for (Merchant merchant : merchants) {
|
||||||
String memberId = AdapayUtils.getMemberId(request.getCustomerId(), merchant.getDeptId());
|
String memberId = AdapayUtils.getMemberId(request.getCustomerId(), merchant.getDeptId());
|
||||||
|
|
@ -61,6 +64,8 @@ public class CustomerBankController {
|
||||||
customerBank.setCustomerId(request.getCustomerId());
|
customerBank.setCustomerId(request.getCustomerId());
|
||||||
customerBank.setName(request.getName());
|
customerBank.setName(request.getName());
|
||||||
customerBank.setCertId(request.getCertId());
|
customerBank.setCertId(request.getCertId());
|
||||||
|
customerBank.setBankNum(request.getBankNum());
|
||||||
|
|
||||||
// TODO 入库
|
// TODO 入库
|
||||||
}
|
}
|
||||||
return AjaxResult.success();
|
return AjaxResult.success();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue