删除重复模块
parent
26483ca041
commit
ba79e6283d
|
|
@ -1,36 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.czcb.scfs</groupId>
|
||||
<artifactId>scfs-api-sdk</artifactId>
|
||||
<version>2.0.4</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>scfs-api-service-equity</artifactId>
|
||||
<name>scfs-api-service-equity</name>
|
||||
<description>权益类</description>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||
<version>2.7.16</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.18.30</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.czcb.scfs</groupId>
|
||||
<artifactId>scfs-api-core</artifactId>
|
||||
<version>2.0.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.configuration;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiClient;
|
||||
import com.czcb.scfs.service.equity.invoice.InvoiceService;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @date 2024/7/1
|
||||
*/
|
||||
@Configuration
|
||||
@ComponentScan("com.czcb.scfs.service.equity")
|
||||
public class ScfsApiServiceEquityAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public InvoiceService invoiceService(ApiClient apiClient) {
|
||||
return new InvoiceService(apiClient);
|
||||
}
|
||||
}
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiClient;
|
||||
import com.czcb.scfs.api.core.http.HttpHeaders;
|
||||
import com.czcb.scfs.api.core.http.HttpResponse;
|
||||
import com.czcb.scfs.service.equity.invoice.model.*;
|
||||
|
||||
import static com.czcb.scfs.api.core.Constants.API_VERSION;
|
||||
import static com.czcb.scfs.api.core.Constants.V_2;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @date 2024/7/1
|
||||
*/
|
||||
public class InvoiceService {
|
||||
private final ApiClient apiClient;
|
||||
|
||||
public InvoiceService(ApiClient apiClient) {
|
||||
this.apiClient = apiClient;
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加发票
|
||||
*/
|
||||
public InvoiceAddResponse add(InvoiceAddRequest request) {
|
||||
String url = "/invoice/add";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_2);
|
||||
HttpResponse<InvoiceAddResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceAddResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除发票
|
||||
*/
|
||||
public InvoiceDelResponse del(InvoiceDelRequest request) {
|
||||
String url = "/invoice/del";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_2);
|
||||
HttpResponse<InvoiceDelResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceDelResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 作废发票
|
||||
*/
|
||||
public InvoiceInvalidResponse invalid(InvoiceInvalidRequest request) {
|
||||
String url = "/invoice/invalid";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_2);
|
||||
HttpResponse<InvoiceInvalidResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInvalidResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
public InvoiceQueryResponse query(InvoiceQueryRequest request) {
|
||||
String url = "/invoice/query";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_2);
|
||||
HttpResponse<InvoiceQueryResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceQueryResponse.class);
|
||||
return httpResponse.getServiceResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* 发票匹配
|
||||
*/
|
||||
public InvoiceMatchResponse match(InvoiceMatchRequest request) {
|
||||
String url = "/invoice/settle/match";
|
||||
HttpHeaders headers = new HttpHeaders();
|
||||
headers.addHeader(API_VERSION, V_2);
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
|
@ -1,110 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("243301")
|
||||
public class InvoiceAddRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@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;
|
||||
/**
|
||||
* 发票类型 1、通用发票 2、累计循环发票
|
||||
*/
|
||||
@SerializedName("invoice_type")
|
||||
private String invoiceType;
|
||||
/**
|
||||
* 发票登记日期
|
||||
*/
|
||||
@SerializedName("invoice_register_date")
|
||||
private Date invoiceRegisterDate;
|
||||
/**
|
||||
* 付款账户账号
|
||||
*/
|
||||
@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_belong_start_date")
|
||||
private Date invoiceBelongStartDate;
|
||||
/**
|
||||
* 发票归属日期止
|
||||
*/
|
||||
@SerializedName("invoice_belong_end_date")
|
||||
private Date invoiceBelongEndDate;
|
||||
/**
|
||||
* 发票金额
|
||||
*/
|
||||
@SerializedName("invoice_amount")
|
||||
private BigDecimal invoiceAmount;
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiRequest;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class InvoiceAddResponse implements ApiRequest {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.czcb.scfs.api.core.util.DateTimes;
|
||||
import com.czcb.scfs.api.core.validation.Size;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("243300")
|
||||
public class InvoiceDelRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@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;
|
||||
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
@Size(min = 1, max = 50, message = "数据条数1-50")
|
||||
@SerializedName("invoice_nos")
|
||||
private List<String> invoiceNos;
|
||||
|
||||
public static InvoiceDelRequest of(String channelNo, String appNo, String serialNo, String... invoiceNos) {
|
||||
InvoiceDelRequest request = new InvoiceDelRequest();
|
||||
request.setChannelNo(channelNo);
|
||||
request.setAppNo(appNo);
|
||||
request.setSerialNo(serialNo);
|
||||
request.setTransDate(DateTimes.ofNowDate());
|
||||
request.setTransTradeTime(DateTimes.ofNow());
|
||||
request.setInvoiceNos(Arrays.asList(invoiceNos));
|
||||
return request;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class InvoiceDelResponse 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;
|
||||
}
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.czcb.scfs.api.core.util.DateTimes;
|
||||
import com.czcb.scfs.api.core.validation.Size;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("243302")
|
||||
public class InvoiceInvalidRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@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("invalid")
|
||||
private String invalid = "1";
|
||||
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
@Size(min = 1, max = 50, message = "数据条数1-50")
|
||||
@SerializedName("invoice_nos")
|
||||
private List<String> invoiceNos;
|
||||
|
||||
public static InvoiceInvalidRequest of(String channelNo, String appNo, String serialNo, String... invoiceNos) {
|
||||
InvoiceInvalidRequest request = new InvoiceInvalidRequest();
|
||||
request.setChannelNo(channelNo);
|
||||
request.setAppNo(appNo);
|
||||
request.setSerialNo(serialNo);
|
||||
request.setTransDate(DateTimes.ofNowDate());
|
||||
request.setTransTradeTime(DateTimes.ofNow());
|
||||
request.setInvoiceNos(Arrays.asList(invoiceNos));
|
||||
return request;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
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;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class InvoiceInvalidResponse 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;
|
||||
}
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiRequest;
|
||||
import com.czcb.scfs.api.core.agrs.TransType;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@TransType("243304")
|
||||
public class InvoiceMatchRequest implements ApiRequest {
|
||||
/**
|
||||
* 渠道编号
|
||||
*/
|
||||
@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("deposit_serial_no")
|
||||
private String depositSerialNo;
|
||||
|
||||
/**
|
||||
* 付款账户账号
|
||||
*/
|
||||
@SerializedName("account_no")
|
||||
private String accountNo;
|
||||
/**
|
||||
* 付款账户户名
|
||||
*/
|
||||
@SerializedName("account_name")
|
||||
private String accountName;
|
||||
/**
|
||||
* 结算金额
|
||||
*/
|
||||
@SerializedName("settle_amount")
|
||||
private BigDecimal settleAmount;
|
||||
|
||||
/**
|
||||
* 匹配类型
|
||||
*/
|
||||
@SerializedName("match_type")
|
||||
private String matchType;
|
||||
}
|
||||
|
|
@ -1,43 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.invoice.model;
|
||||
|
||||
import com.czcb.scfs.api.core.ApiRequest;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @since 2024/7/8
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class InvoiceMatchResponse implements ApiRequest {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
|
@ -1,100 +0,0 @@
|
|||
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 InvoiceQueryRequest 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("invoice_register_date_start")
|
||||
private String invoiceRegisterDateStart;
|
||||
|
||||
/**
|
||||
* 发票登记日期-开始
|
||||
*/
|
||||
@SerializedName("invoice_register_date_end")
|
||||
private String invoiceRegisterDateEnd;
|
||||
|
||||
/**
|
||||
* 付款账户账号
|
||||
*/
|
||||
@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("current_page")
|
||||
private Long currentPage;
|
||||
|
||||
@SerializedName("current_rows")
|
||||
private Long currentRows;
|
||||
}
|
||||
|
|
@ -1,148 +0,0 @@
|
|||
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 InvoiceQueryResponse 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<InvoiceData> data;
|
||||
|
||||
@SerializedName("current_page")
|
||||
private Long currentPage;
|
||||
|
||||
@SerializedName("total_page")
|
||||
private Long totalPage;
|
||||
|
||||
@SerializedName("total_rows")
|
||||
private Long totalRows;
|
||||
|
||||
@Data
|
||||
public static class InvoiceData implements Serializable {
|
||||
/**
|
||||
* 发票编号
|
||||
*/
|
||||
@SerializedName("invoice_no")
|
||||
private String invoiceNo;
|
||||
/**
|
||||
* 发票类型 1、通用发票 2、累计循环发票
|
||||
*/
|
||||
@SerializedName("invoice_type")
|
||||
private String invoiceType;
|
||||
/**
|
||||
* 发票登记日期
|
||||
*/
|
||||
@SerializedName("invoice_register_date")
|
||||
private String invoiceRegisterDate;
|
||||
/**
|
||||
* 付款账户账号
|
||||
*/
|
||||
@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_belong_start_date")
|
||||
private String invoiceBelongStartDate;
|
||||
/**
|
||||
* 发票归属日期止
|
||||
*/
|
||||
@SerializedName("invoice_belong_end_date")
|
||||
private String invoiceBelongEndDate;
|
||||
/**
|
||||
* 发票金额
|
||||
*/
|
||||
@SerializedName("invoice_amount")
|
||||
private BigDecimal invoiceAmount;
|
||||
/**
|
||||
* 发票状态
|
||||
*/
|
||||
@SerializedName("invoice_status")
|
||||
private String invoiceStatus;
|
||||
/**
|
||||
* 已结算金额
|
||||
*/
|
||||
@SerializedName("settle_amount")
|
||||
private BigDecimal settleAmount;
|
||||
/**
|
||||
* 结算状态 0、未结算 1、已结算 2、部分结算
|
||||
*/
|
||||
@SerializedName("settle_status")
|
||||
private String settleStatus;
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@SerializedName("create_time")
|
||||
private String createTime;
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@SerializedName("update_time")
|
||||
private String updateTime;
|
||||
}
|
||||
}
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
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 Long currentPage;
|
||||
|
||||
@SerializedName("current_rows")
|
||||
private Long currentRows;
|
||||
}
|
||||
|
|
@ -1,133 +0,0 @@
|
|||
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 Long currentPage;
|
||||
|
||||
@SerializedName("total_page")
|
||||
private Long totalPage;
|
||||
|
||||
@SerializedName("total_rows")
|
||||
private Long 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,2 +0,0 @@
|
|||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.czcb.scfs.service.equity.configuration.ScfsApiServiceEquityAutoConfiguration
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
package com.czcb.scfs.service.equity.configuration;
|
||||
|
||||
/**
|
||||
* @author wangwei
|
||||
* @date 2024/7/1
|
||||
*/
|
||||
class ScfsApiServiceEquityAutoConfigurationTest {
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue