feat: 发票流水查询
parent
2176745902
commit
6b8da80513
|
|
@ -73,4 +73,15 @@ public class InvoiceService {
|
|||
HttpResponse<InvoiceMatchResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceMatchResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询流水
|
||||
*/
|
||||
public InvoiceTransQueryResponse transQuery(InvoiceTransQueryRequest request) {
|
||||
String url = "/invoice/trans/query";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_2);
|
||||
HttpResponse<InvoiceTransQueryResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceTransQueryResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@ import lombok.Data;
|
|||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
|
|
@ -52,16 +51,13 @@ public class InvoiceMatchRequest implements ApiRequest {
|
|||
*/
|
||||
@SerializedName("invoice_no")
|
||||
private String invoiceNo;
|
||||
|
||||
/**
|
||||
* 发票类型 1、通用发票 2、累计循环发票
|
||||
* 来账流水号
|
||||
*/
|
||||
@SerializedName("invoice_type")
|
||||
private String invoiceType;
|
||||
/**
|
||||
* 发票登记日期
|
||||
*/
|
||||
@SerializedName("invoice_register_date")
|
||||
private Date invoiceRegisterDate;
|
||||
@SerializedName("deposit_serial_no")
|
||||
private String depositSerialNo;
|
||||
|
||||
/**
|
||||
* 付款账户账号
|
||||
*/
|
||||
|
|
@ -73,38 +69,14 @@ public class InvoiceMatchRequest implements ApiRequest {
|
|||
@SerializedName("account_name")
|
||||
private String accountName;
|
||||
/**
|
||||
* 收款账户账号(入账账户)
|
||||
* 结算金额
|
||||
*/
|
||||
@SerializedName("opp_account_no")
|
||||
private String oppAccountNo;
|
||||
@SerializedName("settle_amount")
|
||||
private BigDecimal settleAmount;
|
||||
|
||||
/**
|
||||
* 收款账户户名(入账账户)
|
||||
* 匹配类型
|
||||
*/
|
||||
@SerializedName("opp_account_name")
|
||||
private String oppAccountName;
|
||||
/**
|
||||
* 归集账户账号(待清算账户/可控电商A2)
|
||||
*/
|
||||
@SerializedName("settle_account_no")
|
||||
private String settleAccountNo;
|
||||
/**
|
||||
* 归集账户户名(待清算账户/可控电商A2)
|
||||
*/
|
||||
@SerializedName("settle_account_name")
|
||||
private String settleAccountName;
|
||||
/**
|
||||
* 发票归属日期起
|
||||
*/
|
||||
@SerializedName("invoice_belong_start_date")
|
||||
private Date invoiceBelongStartDate;
|
||||
/**
|
||||
* 发票归属日期止
|
||||
*/
|
||||
@SerializedName("invoice_belong_end_date")
|
||||
private Date invoiceBelongEndDate;
|
||||
/**
|
||||
* 发票金额
|
||||
*/
|
||||
@SerializedName("invoice_amount")
|
||||
private BigDecimal invoiceAmount;
|
||||
@SerializedName("match_type")
|
||||
private String matchType;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -91,4 +91,10 @@ public class InvoiceQueryRequest implements PageApiRequest {
|
|||
*/
|
||||
@SerializedName("settle_account_name")
|
||||
private String settleAccountName;
|
||||
|
||||
@SerializedName("current_page")
|
||||
private String currentPage;
|
||||
|
||||
@SerializedName("current_rows")
|
||||
private String currentRows;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,6 +48,15 @@ public class InvoiceQueryResponse implements PageApiResponse {
|
|||
@SerializedName("data")
|
||||
private List<InvoiceData> data;
|
||||
|
||||
@SerializedName("current_page")
|
||||
private String currentPage;
|
||||
|
||||
@SerializedName("total_page")
|
||||
private String totalPage;
|
||||
|
||||
@SerializedName("total_rows")
|
||||
private String totalRows;
|
||||
|
||||
@Data
|
||||
public static class InvoiceData implements Serializable {
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -0,0 +1,58 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.PageApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("243303")
|
||||
public class InvoiceTransQueryRequest implements PageApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@SerializedName("channel_no")
|
||||
private String channelNo;
|
||||
|
||||
/**
|
||||
* 应用编号
|
||||
*/
|
||||
@SerializedName("app_no")
|
||||
private String appNo;
|
||||
|
||||
/**
|
||||
* 流水号
|
||||
*/
|
||||
@SerializedName("serial_no")
|
||||
private String serialNo;
|
||||
|
||||
/**
|
||||
* 操作日期
|
||||
*/
|
||||
@SerializedName("trans_date")
|
||||
private String transDate;
|
||||
|
||||
/**
|
||||
* 操作时间
|
||||
*/
|
||||
@SerializedName("trans_tradetime")
|
||||
private String transTradeTime;
|
||||
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
@SerializedName("invoice_no")
|
||||
private String invoiceNo;
|
||||
|
||||
@SerializedName("current_page")
|
||||
private String currentPage;
|
||||
|
||||
@SerializedName("current_rows")
|
||||
private String currentRows;
|
||||
}
|
||||
|
|
@ -0,0 +1,133 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.PageApiResponse;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class InvoiceTransQueryResponse implements PageApiResponse {
|
||||
/**
|
||||
* 000000:表示成功
|
||||
*/
|
||||
@SerializedName("recode")
|
||||
private String recode;
|
||||
|
||||
/**
|
||||
* 结果信息
|
||||
*/
|
||||
@SerializedName("recode_info")
|
||||
private String recodeInfo;
|
||||
/**
|
||||
* 系统流水号
|
||||
*/
|
||||
@SerializedName("sys_serial_no")
|
||||
private String sysSerialNo;
|
||||
|
||||
/**
|
||||
* 系统日期(YYYY-MM-DD)
|
||||
*/
|
||||
@SerializedName("sys_date")
|
||||
private String sysDate;
|
||||
|
||||
/**
|
||||
* 系统时间(YYYY-MM-DD hh:mm:ss)
|
||||
*/
|
||||
@SerializedName("sys_time")
|
||||
private String sysTime;
|
||||
|
||||
@SerializedName("data")
|
||||
private List<InvoiceTransData> data;
|
||||
|
||||
@SerializedName("current_page")
|
||||
private String currentPage;
|
||||
|
||||
@SerializedName("total_page")
|
||||
private String totalPage;
|
||||
|
||||
@SerializedName("total_rows")
|
||||
private String totalRows;
|
||||
|
||||
@Data
|
||||
public static class InvoiceTransData implements Serializable {
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
@SerializedName("invoice_no")
|
||||
private String invoiceNo;
|
||||
/**
|
||||
* 来账流水号
|
||||
*/
|
||||
@SerializedName("deposit_serial_no")
|
||||
private String depositSerialNo;
|
||||
/**
|
||||
* 付款账户账号
|
||||
*/
|
||||
@SerializedName("account_no")
|
||||
private String accountNo;
|
||||
/**
|
||||
* 付款账户户名
|
||||
*/
|
||||
@SerializedName("account_name")
|
||||
private String accountName;
|
||||
/**
|
||||
* 收款账户账号(入账账户)
|
||||
*/
|
||||
@SerializedName("opp_account_no")
|
||||
private String oppAccountNo;
|
||||
/**
|
||||
* 收款账户户名(入账账户)
|
||||
*/
|
||||
@SerializedName("opp_account_name")
|
||||
private String oppAccountName;
|
||||
/**
|
||||
* 归集账户账号(待清算账户/可控电商A2)
|
||||
*/
|
||||
@SerializedName("settle_account_no")
|
||||
private String settleAccountNo;
|
||||
/**
|
||||
* 归集账户户名(待清算账户/可控电商A2)
|
||||
*/
|
||||
@SerializedName("settle_account_name")
|
||||
private String settleAccountName;
|
||||
/**
|
||||
* 发票金额
|
||||
*/
|
||||
@SerializedName("invoice_amount")
|
||||
private BigDecimal invoiceAmount;
|
||||
/**
|
||||
* 已结算金额
|
||||
*/
|
||||
@SerializedName("settle_amount")
|
||||
private BigDecimal settleAmount;
|
||||
/**
|
||||
* 1、自动匹配 2、人工匹配
|
||||
*/
|
||||
@SerializedName("match_type")
|
||||
private String matchType;
|
||||
/**
|
||||
* 0、未匹配 1、匹配成功
|
||||
*/
|
||||
@SerializedName("match_status")
|
||||
private String matchStatus;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@SerializedName("create_time")
|
||||
private String createTime;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@SerializedName("update_time")
|
||||
private String updateTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
scfs.api-gateway.online=false
|
||||
scfs.api-gateway.host=http://10.133.135.94:8088/api-gateway
|
||||
#scfs.api-gateway.host=http://127.0.0.1:8088/api-gateway
|
||||
scfs.api-gateway.channel.channel-no=0000
|
||||
#scfs.api-gateway.host=http://10.133.135.94:8088/api-gateway
|
||||
scfs.api-gateway.host=http://127.0.0.1:8088/api-gateway
|
||||
scfs.api-gateway.channel.channel-no=1028
|
||||
scfs.api-gateway.channel.app-no=41
|
||||
scfs.api-gateway.cipher.store-type=resources
|
||||
#scfs.api-gateway.cipher.channel-private-key=invalid_rsa_private_key.pem
|
||||
|
|
|
|||
Loading…
Reference in New Issue