cbs8 接口相关
This commit is contained in:
parent
e64978e5e9
commit
5b19809ef0
|
@ -0,0 +1,32 @@
|
|||
package com.hzya.frame.cbs8.dto.req;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description 代发代扣请求参数
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/6/18 16:20
|
||||
**/
|
||||
public class AgentPayRequestDTO {
|
||||
|
||||
//代发表头
|
||||
private PaymentApplySubmitReqDTO paymentApplySubmitReqDTO;
|
||||
//代发明细
|
||||
private List<PaymentApplyAgentDTO> paymentApplyAgentDTO;
|
||||
|
||||
public PaymentApplySubmitReqDTO getPaymentApplySubmitReqDTO() {
|
||||
return paymentApplySubmitReqDTO;
|
||||
}
|
||||
|
||||
public void setPaymentApplySubmitReqDTO(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO) {
|
||||
this.paymentApplySubmitReqDTO = paymentApplySubmitReqDTO;
|
||||
}
|
||||
|
||||
public List<PaymentApplyAgentDTO> getPaymentApplyAgentDTO() {
|
||||
return paymentApplyAgentDTO;
|
||||
}
|
||||
|
||||
public void setPaymentApplyAgentDTO(List<PaymentApplyAgentDTO> paymentApplyAgentDTO) {
|
||||
this.paymentApplyAgentDTO = paymentApplyAgentDTO;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
package com.hzya.frame.cbs8.dto.req;
|
||||
|
||||
/**
|
||||
* @Description 代发代扣详情查询请求参数
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/6/18 17:40
|
||||
**/
|
||||
public class AgentPayResultRequestDTO {
|
||||
|
||||
//申请单编号。 代发代扣支付接口会返回这个单号的
|
||||
private String busNum;
|
||||
|
||||
public String getBusNum() {
|
||||
return busNum;
|
||||
}
|
||||
|
||||
public void setBusNum(String busNum) {
|
||||
this.busNum = busNum;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
package com.hzya.frame.cbs8.dto.req;
|
||||
|
||||
/**
|
||||
* @Description 代发代扣明细
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/6/18 13:45
|
||||
**/
|
||||
public class PaymentApplyAgentDTO {
|
||||
//每笔明细金额
|
||||
private String dtlAmount;
|
||||
//收款账号
|
||||
private String dtlRevAccount;
|
||||
//联行号 同行可不传,跨行必传
|
||||
private String dtlCnapsCode;
|
||||
//收款账户名称
|
||||
private String dtlRevName;
|
||||
//收款开户行 ,如果传的联行号能匹配到对应到开户行,cbs8会自动带出
|
||||
private String dtlRevBankName;
|
||||
|
||||
|
||||
|
||||
//是否跨行 Y跨行 N同行
|
||||
private String dtlBankFlag;
|
||||
//明细用途
|
||||
private String dtlPurpose;
|
||||
//明细摘要
|
||||
private String dtlRemark;
|
||||
//收款账号银行号|地区码
|
||||
private String dtlRevBankArea;
|
||||
//收款开户地
|
||||
private String dtlRevBankCity;
|
||||
//明细序号,从1开始递增
|
||||
private int dtlSeqNum;
|
||||
//备用字段 一共6个
|
||||
private String dtlExtend1;
|
||||
|
||||
public String getDtlAmount() {
|
||||
return dtlAmount;
|
||||
}
|
||||
|
||||
public void setDtlAmount(String dtlAmount) {
|
||||
this.dtlAmount = dtlAmount;
|
||||
}
|
||||
|
||||
public String getDtlRevAccount() {
|
||||
return dtlRevAccount;
|
||||
}
|
||||
|
||||
public void setDtlRevAccount(String dtlRevAccount) {
|
||||
this.dtlRevAccount = dtlRevAccount;
|
||||
}
|
||||
|
||||
public String getDtlCnapsCode() {
|
||||
return dtlCnapsCode;
|
||||
}
|
||||
|
||||
public void setDtlCnapsCode(String dtlCnapsCode) {
|
||||
this.dtlCnapsCode = dtlCnapsCode;
|
||||
}
|
||||
|
||||
public String getDtlRevName() {
|
||||
return dtlRevName;
|
||||
}
|
||||
|
||||
public void setDtlRevName(String dtlRevName) {
|
||||
this.dtlRevName = dtlRevName;
|
||||
}
|
||||
|
||||
public String getDtlRevBankName() {
|
||||
return dtlRevBankName;
|
||||
}
|
||||
|
||||
public void setDtlRevBankName(String dtlRevBankName) {
|
||||
this.dtlRevBankName = dtlRevBankName;
|
||||
}
|
||||
|
||||
public String getDtlBankFlag() {
|
||||
return dtlBankFlag;
|
||||
}
|
||||
|
||||
public void setDtlBankFlag(String dtlBankFlag) {
|
||||
this.dtlBankFlag = dtlBankFlag;
|
||||
}
|
||||
|
||||
public String getDtlPurpose() {
|
||||
return dtlPurpose;
|
||||
}
|
||||
|
||||
public void setDtlPurpose(String dtlPurpose) {
|
||||
this.dtlPurpose = dtlPurpose;
|
||||
}
|
||||
|
||||
public String getDtlRemark() {
|
||||
return dtlRemark;
|
||||
}
|
||||
|
||||
public void setDtlRemark(String dtlRemark) {
|
||||
this.dtlRemark = dtlRemark;
|
||||
}
|
||||
|
||||
public String getDtlRevBankArea() {
|
||||
return dtlRevBankArea;
|
||||
}
|
||||
|
||||
public void setDtlRevBankArea(String dtlRevBankArea) {
|
||||
this.dtlRevBankArea = dtlRevBankArea;
|
||||
}
|
||||
|
||||
public String getDtlRevBankCity() {
|
||||
return dtlRevBankCity;
|
||||
}
|
||||
|
||||
public void setDtlRevBankCity(String dtlRevBankCity) {
|
||||
this.dtlRevBankCity = dtlRevBankCity;
|
||||
}
|
||||
|
||||
public int getDtlSeqNum() {
|
||||
return dtlSeqNum;
|
||||
}
|
||||
|
||||
public void setDtlSeqNum(int dtlSeqNum) {
|
||||
this.dtlSeqNum = dtlSeqNum;
|
||||
}
|
||||
|
||||
public String getDtlExtend1() {
|
||||
return dtlExtend1;
|
||||
}
|
||||
|
||||
public void setDtlExtend1(String dtlExtend1) {
|
||||
this.dtlExtend1 = dtlExtend1;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,182 @@
|
|||
package com.hzya.frame.cbs8.dto.req;
|
||||
|
||||
/**
|
||||
* @Description 批量代发代扣 203代发 201代扣
|
||||
* @Author xiangerlin
|
||||
* @Date 2024/6/18 11:58
|
||||
**/
|
||||
public class PaymentApplySubmitReqDTO {
|
||||
//业务参考号
|
||||
private String referenceNum;
|
||||
/**
|
||||
* 业务类型
|
||||
* 201-代扣
|
||||
* 203-代发
|
||||
* 代发工资传203
|
||||
*/
|
||||
private String busType;
|
||||
//总金额 小数位2位
|
||||
private String amount;
|
||||
//币种
|
||||
private String currency;
|
||||
//付款账号
|
||||
private String payAccount;
|
||||
//用途
|
||||
private String purpose;
|
||||
// 以上是必填字段
|
||||
|
||||
|
||||
|
||||
//备注
|
||||
private String summary;
|
||||
//期望支付时间
|
||||
private String expectTime;
|
||||
//公私标识 1对私 0对公
|
||||
private String personalFlag;
|
||||
//加急标志 1加急 0不加急
|
||||
private String urgentTag;
|
||||
//是否实时 1实时 0落地
|
||||
private String realTimeTag;
|
||||
/**
|
||||
* 同城标志 0同城 1异地
|
||||
* 收/付账号所属同一个城市为同城,否则为异地
|
||||
*/
|
||||
private String cityFlag;
|
||||
//银行备用字段 一共8个
|
||||
private String bankExtend1;
|
||||
|
||||
//客户备用字段1
|
||||
private String erpExtend1;
|
||||
//客户备用字段1
|
||||
private String erpExtend2;
|
||||
//客户备用字段1
|
||||
private String erpExtend3;
|
||||
|
||||
public String getReferenceNum() {
|
||||
return referenceNum;
|
||||
}
|
||||
|
||||
public void setReferenceNum(String referenceNum) {
|
||||
this.referenceNum = referenceNum;
|
||||
}
|
||||
|
||||
public String getBusType() {
|
||||
return busType;
|
||||
}
|
||||
|
||||
public void setBusType(String busType) {
|
||||
this.busType = busType;
|
||||
}
|
||||
|
||||
public String getAmount() {
|
||||
return amount;
|
||||
}
|
||||
|
||||
public void setAmount(String amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
|
||||
public String getCurrency() {
|
||||
return currency;
|
||||
}
|
||||
|
||||
public void setCurrency(String currency) {
|
||||
this.currency = currency;
|
||||
}
|
||||
|
||||
public String getPayAccount() {
|
||||
return payAccount;
|
||||
}
|
||||
|
||||
public void setPayAccount(String payAccount) {
|
||||
this.payAccount = payAccount;
|
||||
}
|
||||
|
||||
public String getPurpose() {
|
||||
return purpose;
|
||||
}
|
||||
|
||||
public void setPurpose(String purpose) {
|
||||
this.purpose = purpose;
|
||||
}
|
||||
|
||||
public String getSummary() {
|
||||
return summary;
|
||||
}
|
||||
|
||||
public void setSummary(String summary) {
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
public String getExpectTime() {
|
||||
return expectTime;
|
||||
}
|
||||
|
||||
public void setExpectTime(String expectTime) {
|
||||
this.expectTime = expectTime;
|
||||
}
|
||||
|
||||
public String getPersonalFlag() {
|
||||
return personalFlag;
|
||||
}
|
||||
|
||||
public void setPersonalFlag(String personalFlag) {
|
||||
this.personalFlag = personalFlag;
|
||||
}
|
||||
|
||||
public String getUrgentTag() {
|
||||
return urgentTag;
|
||||
}
|
||||
|
||||
public void setUrgentTag(String urgentTag) {
|
||||
this.urgentTag = urgentTag;
|
||||
}
|
||||
|
||||
public String getRealTimeTag() {
|
||||
return realTimeTag;
|
||||
}
|
||||
|
||||
public void setRealTimeTag(String realTimeTag) {
|
||||
this.realTimeTag = realTimeTag;
|
||||
}
|
||||
|
||||
public String getCityFlag() {
|
||||
return cityFlag;
|
||||
}
|
||||
|
||||
public void setCityFlag(String cityFlag) {
|
||||
this.cityFlag = cityFlag;
|
||||
}
|
||||
|
||||
public String getBankExtend1() {
|
||||
return bankExtend1;
|
||||
}
|
||||
|
||||
public void setBankExtend1(String bankExtend1) {
|
||||
this.bankExtend1 = bankExtend1;
|
||||
}
|
||||
|
||||
public String getErpExtend1() {
|
||||
return erpExtend1;
|
||||
}
|
||||
|
||||
public void setErpExtend1(String erpExtend1) {
|
||||
this.erpExtend1 = erpExtend1;
|
||||
}
|
||||
|
||||
public String getErpExtend2() {
|
||||
return erpExtend2;
|
||||
}
|
||||
|
||||
public void setErpExtend2(String erpExtend2) {
|
||||
this.erpExtend2 = erpExtend2;
|
||||
}
|
||||
|
||||
public String getErpExtend3() {
|
||||
return erpExtend3;
|
||||
}
|
||||
|
||||
public void setErpExtend3(String erpExtend3) {
|
||||
this.erpExtend3 = erpExtend3;
|
||||
}
|
||||
}
|
|
@ -5,7 +5,7 @@ package com.hzya.frame.cbs8.dto.res;
|
|||
* @Author xiangerlin
|
||||
* @Date 2023/12/29 16:40
|
||||
**/
|
||||
public class TransactionDetailDTO extends TransactionResParentDTO{
|
||||
public class TransactionDetailDTO{
|
||||
private String accountNo;//银行账号
|
||||
private String accountName;//银行名称
|
||||
private String bankType;//银行类型
|
||||
|
|
|
@ -16,6 +16,13 @@ public interface ICbs8ExtService {
|
|||
*/
|
||||
SysExtensionApiEntity payApply(SysExtensionApiEntity entity);
|
||||
|
||||
/**
|
||||
* 代发代扣 支付申请
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
SysExtensionApiEntity agentPayApply(SysExtensionApiEntity entity);
|
||||
|
||||
/**
|
||||
* 交易结果查询
|
||||
* @param entity
|
||||
|
@ -49,4 +56,5 @@ public interface ICbs8ExtService {
|
|||
* @return
|
||||
*/
|
||||
SysExtensionApiEntity elecQuery(SysExtensionApiEntity entity);
|
||||
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
package com.hzya.frame.cbs8.service;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.hzya.frame.cbs8.dto.req.ElecRequestDTO;
|
||||
import com.hzya.frame.cbs8.dto.req.PayResultRequestDTO;
|
||||
import com.hzya.frame.cbs8.dto.req.TransactionDetailReqDTO;
|
||||
import com.hzya.frame.cbs8.dto.req.*;
|
||||
import com.hzya.frame.cbs8.dto.res.*;
|
||||
import com.hzya.frame.seeyon.cbs8.entity.PaymentEntity;
|
||||
|
||||
|
@ -50,4 +48,19 @@ public interface ICbs8Service {
|
|||
* @return
|
||||
*/
|
||||
CbsResDataDTO queryTransactionDetail(TransactionDetailReqDTO transactionDetailReqDTO);
|
||||
|
||||
/**
|
||||
* 代发代扣 支付申请
|
||||
* @param paymentApplySubmitReqDTO
|
||||
* @param paymentApplyAgentList
|
||||
*/
|
||||
PayResponseDTO agentPayApply(PaymentApplySubmitReqDTO paymentApplySubmitReqDTO, List<PaymentApplyAgentDTO> paymentApplyAgentList);
|
||||
|
||||
/**
|
||||
* 代发代扣 详情查询
|
||||
* @param agentPayResultRequestDTO
|
||||
* @return
|
||||
*/
|
||||
AgentPayResultResDTO agentPayResult(AgentPayResultRequestDTO agentPayResultRequestDTO);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue