refactor(lsfx): 重构接口7 Request/Response,新路径、新参数、完整字段

This commit is contained in:
wkc
2026-03-02 22:09:20 +08:00
parent fe7f7eafce
commit b2471c3cc7
2 changed files with 155 additions and 27 deletions

View File

@@ -3,7 +3,7 @@ package com.ruoyi.lsfx.domain.request;
import lombok.Data; import lombok.Data;
/** /**
* 获取银行流水请求参数 * 获取银行流水请求参数(匹配新文档6.2节)
*/ */
@Data @Data
public class GetBankStatementRequest { public class GetBankStatementRequest {
@@ -11,8 +11,11 @@ public class GetBankStatementRequest {
/** 项目ID */ /** 项目ID */
private Integer groupId; private Integer groupId;
/** 页码 */ /** 文件ID(新增必填参数) */
private Integer pageNum; private Integer logId;
/** 当前页码(原pageNum) */
private Integer pageNow;
/** 每页数量 */ /** 每页数量 */
private Integer pageSize; private Integer pageSize;

View File

@@ -1,10 +1,11 @@
package com.ruoyi.lsfx.domain.response; package com.ruoyi.lsfx.domain.response;
import lombok.Data; import lombok.Data;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
/** /**
* 获取银行流水响应 * 获取银行流水响应(匹配新文档6.5节)
*/ */
@Data @Data
public class GetBankStatementResponse { public class GetBankStatementResponse {
@@ -12,8 +13,8 @@ public class GetBankStatementResponse {
/** 返回码 */ /** 返回码 */
private String code; private String code;
/** 消息 */ /** 状态 */
private String message; private String status;
/** 成功标识 */ /** 成功标识 */
private Boolean successResponse; private Boolean successResponse;
@@ -23,40 +24,164 @@ public class GetBankStatementResponse {
@Data @Data
public static class BankStatementData { public static class BankStatementData {
/** 总记录数 */ /** 流水列表 */
private Long total; private List<BankStatementItem> bankStatementList;
/** 当前页码 */ /** 总条数 */
private Integer pageNum; private Integer totalCount;
/** 每页数量 */
private Integer pageSize;
/** 流水记录列表 */
private List<BankStatement> records;
} }
@Data @Data
public static class BankStatement { public static class BankStatementItem {
// ===== 账号相关信息 =====
/** 流水ID */ /** 流水ID */
private Long id; private Long bankStatementId;
/** 企业ID */
private Integer leId;
/** 账号ID */
private Long accountId;
/** 企业账号名称 */
private String leName;
/** 企业银行账号 */
private String accountMaskNo;
/** 账号日期ID */
private Integer accountingDateId;
/** 账号日期 */
private String accountingDate;
/** 交易日期 */ /** 交易日期 */
private String transDate; private String trxDate;
/** 币种 */
private String currency;
// ===== 交易金额 =====
/** 付款金额 */
private BigDecimal drAmount;
/** 收款金额 */
private BigDecimal crAmount;
/** 余额 */
private BigDecimal balanceAmount;
/** 交易金额 */ /** 交易金额 */
private String amount; private BigDecimal transAmount;
// ===== 交易类型和标志 =====
/** 交易类型 */ /** 交易类型 */
private String transType; private String cashType;
/** 对方账户 */ /** 交易标志位 */
private String counterAccount; private String transFlag;
/** 对方户名 */ /** 分类ID */
private String counterName; private Integer transTypeId;
/** 摘要 */ /** 异常类型 */
private String summary; private String exceptionType;
// ===== 对手方信息 =====
/** 对手方企业ID */
private Integer customerId;
/** 对手方企业名称 */
private String customerName;
/** 对手方账号 */
private String customerAccountMaskNo;
/** 对手方银行 */
private String customerBank;
/** 对手方备注 */
private String customerReference;
// ===== 摘要和备注 =====
/** 用户交易摘要 */
private String userMemo;
/** 银行交易摘要 */
private String bankComments;
/** 银行交易号 */
private String bankTrxNumber;
// ===== 银行信息 =====
/** 所属银行缩写 */
private String bank;
// ===== 其他字段 =====
/** 是否为内部交易 */
private Integer internalFlag;
/** 上传logId */
private Integer batchId;
/** 项目id */
private Integer groupId;
/** 覆盖标识 */
private Long overrideBsId;
/** 交易方式 */
private String paymentMethod;
/** 客户账号掩码号 */
private String cretNo;
// ===== 附加字段 =====
/** 附件数量 */
private Integer attachments;
/** 评论数 */
private Integer commentsNum;
/** 归档标志 */
private Integer archivingFlag;
/** 下付款标志 */
private Integer downPaymentFlag;
/** 源目录ID */
private Integer sourceCatalogId;
/** 拆分标志 */
private Integer split;
/** 子流水ID */
private Long subBankstatementId;
/** 待办标志 */
private Integer toDoFlag;
/** 转换金额 */
private BigDecimal transformAmount;
/** 转换收款金额 */
private BigDecimal transformCrAmount;
/** 转换付款金额 */
private BigDecimal transformDrAmount;
/** 转换余额 */
private BigDecimal transfromBalanceAmount;
/** 交易余额 */
private BigDecimal trxBalance;
} }
} }