From f814a2faf1b845a5211da3e232b1e67203388154 Mon Sep 17 00:00:00 2001 From: 13009 Date: Wed, 20 Mar 2024 13:54:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B7=E6=AC=BE=E8=BF=98=E6=AC=BE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=9F=A5=E8=AF=A2v2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scfs/api/service/v1/loan/LoanService.java | 14 ++ .../v1/loan/model/ApplyPersonRequest.java | 2 +- .../v1/loan/model/ApplyPersonResponse.java | 2 +- .../v1/loan/model/ApplyQueryResponse.java | 2 + .../v1/loan/model/ApplyQueryV2Request.java | 92 +++++++++++ .../v1/loan/model/ApplyQueryV2Response.java | 150 ++++++++++++++++++ .../v1/loan/model/RepayQueryRequest.java | 2 + .../v1/loan/model/RepayQueryResponse.java | 2 + .../service/v1/loan/model/RepayRequest.java | 2 + .../service/v1/loan/model/RepayResponse.java | 2 + .../v1/loan/model/SignFlowsUrlsResponse.java | 2 + 11 files changed, 270 insertions(+), 2 deletions(-) create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Request.java create mode 100644 scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Response.java diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/LoanService.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/LoanService.java index 5810caa..9a39428 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/LoanService.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/LoanService.java @@ -75,6 +75,20 @@ public class LoanService { return httpResponse.getServiceResponse(); } + /** + * 贷款还款信息查询v2 + * + * @param applyQueryV2Request ApplyQueryV2Request + * @return ApplyQueryV2Response + */ + public ApplyQueryV2Response repayQueryV2(ApplyQueryV2Request applyQueryV2Request) { + String url = "/loanapi/v2/repayquery"; + HttpHeaders headers = new HttpHeaders(); + headers.addHeader(API_VERSION, V_1); + HttpResponse httpResponse = apiClient.post(url, headers, applyQueryV2Request.toJsonRequest(), ApplyQueryV2Response.class); + return httpResponse.getServiceResponse(); + } + /** * 贷款还款信息查询 * diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonRequest.java index 0f1d0f3..58bf824 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonRequest.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonRequest.java @@ -11,7 +11,7 @@ import java.math.BigDecimal; import java.util.List; /** - * 贷款申请 + * 个人贷款申请 * * @author wangwei * @since 2.0.0 diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonResponse.java index dc417ee..891d52b 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonResponse.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyPersonResponse.java @@ -5,7 +5,7 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; /** - * 贷款申请 + * 个人贷款申请 * * @author wangwei * @since 2.0.0 diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryResponse.java index 64e407e..eddd0ea 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryResponse.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryResponse.java @@ -9,6 +9,8 @@ import java.math.BigDecimal; import java.util.List; /** + * 贷款申请进度查询 + * * @author wangwei * @since 2.0.0 */ diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Request.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Request.java new file mode 100644 index 0000000..bac9a2f --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Request.java @@ -0,0 +1,92 @@ +package com.czcb.scfs.api.service.v1.loan.model; + +import com.czcb.scfs.api.core.ApiRequest; +import com.czcb.scfs.api.service.TransType; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.experimental.Accessors; + +import java.math.BigDecimal; + +/** + * 贷款还款信息查询V2 + * + * @author wangwei + * @since 2.0.0 + */ +@Data +@Accessors(chain = true) +@TransType("102002") +public class ApplyQueryV2Request implements ApiRequest { + /** + * 渠道编号 + */ + @SerializedName("channel_no") + private String channelNo; + + /** + * 应用编号 + */ + @SerializedName("app_no") + private String appNo; + + /** + * 流水号 + */ + @SerializedName("serial_no") + private String serialNo; + + /** + * 账号,申请人A1账户账号 + */ + @SerializedName("account_no") + private String accountNo; + + /** + * 户名,申请人A1账户户名 + */ + @SerializedName("account_name") + private String accountName; + + /** + * 查询方式:0、正常查询(默认) 1、提前还款(试算)2、最近到期(试算)3、还款计划查询 + */ + @SerializedName("qrymd") + private String qrymd; + + /** + * 贷款账号 + */ + @SerializedName("loanaccno") + private String loanaccno; + + /** + * 贷款账号序号 + */ + @SerializedName("acctseqno") + private String acctseqno; + + /** + * 提前还款日期 + */ + @SerializedName("repymtdt") + private String repymtdt; + + /** + * 提前还款金额 + */ + @SerializedName("elyrepymtamt") + private BigDecimal elyrepymtamt; + + /** + * 操作日期 + */ + @SerializedName("trans_date") + private String transDate; + + /** + * 操作时间 + */ + @SerializedName("trans_tradetime") + private String transTradeTime; +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Response.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Response.java new file mode 100644 index 0000000..d4ccd21 --- /dev/null +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/ApplyQueryV2Response.java @@ -0,0 +1,150 @@ +package com.czcb.scfs.api.service.v1.loan.model; + +import com.czcb.scfs.api.core.ApiResponse; +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.List; + +/** + * 贷款还款信息查询V2 + * + * @author wangwei + * @since 200 + */ +@Data +public class ApplyQueryV2Response implements ApiResponse { + /** + * 000000:表示成功 + */ + @SerializedName("recode") + private String recode; + + /** + * 结果信息 + */ + @SerializedName("recode_Info") + private String recodeInfo; + + @SerializedName("recode_list") + private List recodeList; + + /** + * 系统日期(YYYY-MM-DD) + */ + @SerializedName("sys_date") + private String sysDate; + + /** + * 系统时间(YYYY-MM-DD hh:mm:ss) + */ + @SerializedName("sys_time") + private String sysTime; + + @Data + public static class RecodeList implements Serializable { + /** + * 贷款状态(0、开户,1、正常,2、逾期,3、结清,4、销户,5、申报核销,6、部分核销,7、全部核销) + */ + @SerializedName("loanst") + private String loanst; + + /** + * 贷款形态(0、正常 1、逾期 2、呆滞 3、呆账 4、部分逾期 5、部分呆滞) + */ + @SerializedName("loantp1") + private String loantp1; + + /** + * 发放金额 + */ + @SerializedName("dstrbtintrate") + private BigDecimal dstrbtintrate; + + /** + * 发放日期 + */ + @SerializedName("lndngdt") + private String lndngdt; + + /** + * 还款方式:1、等本 2、等额 3、按期付息、按期还本 4、一次性还本付息 5、按期付息,任意还本 6、任意还本,利随本清 7、按期付息,到期一次性还本 + */ + @SerializedName("repymtmd") + private String repymtmd; + + /** + * 还息间隔 + */ + @SerializedName("ctrtrm") + private String ctrtrm; + + /** + * 核销本金 + */ + @SerializedName("drwpnp") + private BigDecimal drwpnp; + + /** + * 还款日期(还款试算回显,最近还款日期和试算日期) + */ + @SerializedName("loanexprddt") + private String loanexprddt; + + /** + * 本金利息 + */ + @SerializedName("intamt") + private BigDecimal intamt; + + /** + * 应收利息 + */ + @SerializedName("actintamt") + private BigDecimal actintamt; + + /** + * 应收复利 + */ + @SerializedName("adlint") + private BigDecimal adlint; + + /** + * 催收利息 + */ + @SerializedName("ddcint") + private BigDecimal ddcint; + + /** + * 催收复利 + */ + @SerializedName("netint") + private BigDecimal netint; + + /** + * 待收利息 + */ + @SerializedName("exprtnint") + private BigDecimal exprtnint; + + /** + * 待收利息复利 + */ + @SerializedName("rpybl0dueint") + private BigDecimal rpybl0dueint; + + /** + * 已还本金 + */ + @SerializedName("actrepymtpnpamt") + private BigDecimal actrepymtpnpamt; + + /** + * 已还利息 + */ + @SerializedName("acmclctintamt") + private BigDecimal acmclctintamt; + } +} diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryRequest.java index 593fc2e..189424e 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryRequest.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryRequest.java @@ -7,6 +7,8 @@ import lombok.Data; import lombok.experimental.Accessors; /** + * 贷款还款信息查询 + * * @author wangwei * @since 2.0.0 */ diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryResponse.java index 07cc4c1..406f3d0 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryResponse.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayQueryResponse.java @@ -9,6 +9,8 @@ import java.math.BigDecimal; import java.util.List; /** + * 贷款还款信息查询 + * * @author wangwei * @since 2.0.0 */ diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayRequest.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayRequest.java index 84af9b0..3684eef 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayRequest.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayRequest.java @@ -7,6 +7,8 @@ import lombok.Data; import lombok.experimental.Accessors; /** + * 贷款还款 + * * @author wangwei * @since 2.0.0 */ diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayResponse.java index ba0994b..621dad0 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayResponse.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/RepayResponse.java @@ -5,6 +5,8 @@ import com.google.gson.annotations.SerializedName; import lombok.Data; /** + * 贷款还款 + * * @author wangwei * @since 2.0.0 */ diff --git a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/SignFlowsUrlsResponse.java b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/SignFlowsUrlsResponse.java index f756324..acb6e1c 100644 --- a/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/SignFlowsUrlsResponse.java +++ b/scfs-api-service/src/main/java/com/czcb/scfs/api/service/v1/loan/model/SignFlowsUrlsResponse.java @@ -8,6 +8,8 @@ import java.io.Serializable; import java.util.List; /** + * 获取流程签署地址列表 + * * @author wangwei * @since 2.0.0 */