From 8c52d4725856dc6cd2e08f0f0e17594f3d33651a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com> Date: Wed, 23 Sep 2026 15:05:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=A8=E9=87=91=E8=9D=B6?= =?UTF-8?q?=E5=85=A8=E7=A5=A8=E6=B1=A0A801-1=E8=BF=94=E5=9B=9E=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=98=A0=E5=B0=84=E5=B9=B6=E6=96=B0=E5=A2=9E=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E4=BD=BF=E7=94=A8=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 补全A801-1票面扩展字段(xbrl、通行费出入口、地区、购销方银行电话等), 新增金额使用状态amountUseStatus承接金蝶返回,供选票可用过滤与展示使用。 --- .../bfi/pojo/vo/BfiInvoicePoolVO.java | 253 +++++++++++++++++- 1 file changed, 249 insertions(+), 4 deletions(-) diff --git a/blade-third-party-api/blade-bfi-api/src/main/java/org/springblade/thirdparty/bfi/pojo/vo/BfiInvoicePoolVO.java b/blade-third-party-api/blade-bfi-api/src/main/java/org/springblade/thirdparty/bfi/pojo/vo/BfiInvoicePoolVO.java index 300321a3..1139590b 100644 --- a/blade-third-party-api/blade-bfi-api/src/main/java/org/springblade/thirdparty/bfi/pojo/vo/BfiInvoicePoolVO.java +++ b/blade-third-party-api/blade-bfi-api/src/main/java/org/springblade/thirdparty/bfi/pojo/vo/BfiInvoicePoolVO.java @@ -114,6 +114,11 @@ public class BfiInvoicePoolVO implements Serializable { */ @JsonProperty("availableAmount") private String availableAmount; + /** + * 金额使用状态[0:未使用, 2:全部使用](金蝶字典,选票口径仅保留未使用的票) + */ + @JsonProperty("amountUseStatus") + private String amountUseStatus; /** * 购方税号 */ @@ -198,7 +203,7 @@ public class BfiInvoicePoolVO implements Serializable { @JsonProperty("deductionFlag") private String deductionFlag; /** - * 认证标志[2:已认证] + * 认证标志[0:未认证, 1:已认证] */ @JsonProperty("authenticateFlag") private String authenticateFlag; @@ -223,10 +228,10 @@ public class BfiInvoicePoolVO implements Serializable { @JsonProperty("recordedPurpose") private String recordedPurpose; /** - * 入账状态 + * 税局入账状态[01:未入账, 11:入账处理中, 02:已入账(税前扣除), 03:已入账(不扣除), 06:入账撤销] */ - @JsonProperty("recordedFlag") - private String recordedFlag; + @JsonProperty("recordedStatus") + private String recordedStatus; /** * 税属期,如 2026-01 */ @@ -292,4 +297,244 @@ public class BfiInvoicePoolVO implements Serializable { */ @JsonProperty("items") private List items; + /** + * 开具端xbrl文件名,数电票/财政电子票据返回 + */ + @JsonProperty("xbrlName") + private String xbrlName; + /** + * 电子凭证类型[einvoice:数电票, trainele:铁路客票, airele:航空行程单, financial:财政票据] + */ + @JsonProperty("xbrlType") + private String xbrlType; + /** + * 开具端xbrl文件下载地址 + */ + @JsonProperty("xbrlUrl") + private String xbrlUrl; + /** + * 个人标识 + */ + @JsonProperty("personFlag") + private Boolean personFlag; + /** + * 发票红蓝类型[0:蓝字发票, 1:红字发票] + */ + @JsonProperty("type") + private String type; + /** + * 发票代码,数电票一般无此字段 + */ + @JsonProperty("invoiceCode") + private String invoiceCode; + /** + * 校验码/随机码 + */ + @JsonProperty("checkCode") + private String checkCode; + /** + * 通行费入口 + */ + @JsonProperty("entrance") + private String entrance; + /** + * 通行费出口 + */ + @JsonProperty("exit") + private String exit; + /** + * 发票所在地,定额、过路过桥费发票返回 + */ + @JsonProperty("place") + private String place; + /** + * 省份 + */ + @JsonProperty("province") + private String province; + /** + * 城市 + */ + @JsonProperty("city") + private String city; + /** + * 区域 + */ + @JsonProperty("area") + private String area; + /** + * 发票区域 + */ + @JsonProperty("region") + private String region; + /** + * 目的地区域 + */ + @JsonProperty("destArea") + private String destArea; + /** + * 来源地区 + */ + @JsonProperty("sourceArea") + private String sourceArea; + /** + * 销方类型 + */ + @JsonProperty("salerType") + private String salerType; + /** + * 销方银行账号 + */ + @JsonProperty("salerAccount") + private String salerAccount; + /** + * 购方地址电话 + */ + @JsonProperty("buyerAddressPhone") + private String buyerAddressPhone; + /** + * 购方银行账号 + */ + @JsonProperty("buyerAccount") + private String buyerAccount; + /** + * 金额(备用字段) + */ + @JsonProperty("amount") + private String amount; + /** + * 可抵扣税额,用于旅客运输、海关缴款书等场景 + */ + @JsonProperty("effectiveTaxAmount") + private String effectiveTaxAmount; + /** + * 代开标记 + */ + @JsonProperty("proxyMark") + private String proxyMark; + /** + * 发票风险等级 + */ + @JsonProperty("invoiceRiskLevel") + private String invoiceRiskLevel; + /** + * 文件类型[1:pdf, 2:图片, 4:ofd, 9:xml] + */ + @JsonProperty("fileType") + private String fileType; + /** + * 保存文件名 + */ + @JsonProperty("fileName") + private String fileName; + /** + * 原始文件名 + */ + @JsonProperty("originalFileName") + private String originalFileName; + /** + * 发票快照预览地址 + */ + @JsonProperty("snapshotUrl") + private String snapshotUrl; + /** + * PDF下载地址 + */ + @JsonProperty("pdfurl") + private String pdfurl; + /** + * 图片像素 + */ + @JsonProperty("pixel") + private String pixel; + /** + * 图片旋转角度 + */ + @JsonProperty("rotationAngle") + private String rotationAngle; + /** + * 发票状态[0:正常, 1:失控, 2:作废, 3:红冲, 4:异常, 7:部分红冲, 8:全部红冲] + */ + @JsonProperty("invoiceStatus") + private String invoiceStatus; + /** + * 单据报销状态[1:未用, 30:在用, 60:已用, 65:已入账, 70:已归档] + */ + @JsonProperty("expendStatus") + private String expendStatus; + /** + * 报销状态(业务扩展) + */ + @JsonProperty("expenseStatus") + private String expenseStatus; + /** + * 是否修改 + */ + @JsonProperty("isModify") + private String isModify; + /** + * 是否修订 + */ + @JsonProperty("isRevise") + private String isRevise; + /** + * 是否有公司印章[0:无, 1:有],仅火车票退票凭证 + */ + @JsonProperty("companySeal") + private String companySeal; + /** + * 签收状态[0:未签收, 1:已签收] + */ + @JsonProperty("originalState") + private String originalState; + /** + * 销项清单是否完整 + */ + @JsonProperty("salelistComplete") + private String salelistComplete; + /** + * 销项清单行数 + */ + @JsonProperty("salelistSum") + private Integer salelistSum; + /** + * 税局入账属期,格式YYYY-MM-DD HH:MM:SS + */ + @JsonProperty("recordedPeriod") + private String recordedPeriod; + /** + * 更新时间,格式YYYY-MM-DD HH:MM:SS + */ + @JsonProperty("updateTime") + private String updateTime; + /** + * 发票流水号别名,同serialNo + */ + @JsonProperty("serial_no") + private String serialNoAlias; + /** + * 税局源XML下载地址,数电票 + */ + @JsonProperty("taxXmlUrl") + private String taxXmlUrl; + /** + * 出行人列表,客运票 + */ + @JsonProperty("travelerList") + private List travelerList; + /** + * 发票抬头 + */ + @JsonProperty("title") + private String title; + /** + * 运输类抵扣标记 + */ + @JsonProperty("transportDeduction") + private String transportDeduction; + /** + * 发票时间,例16:51:32,过路过桥费发票 + */ + @JsonProperty("ftime") + private String ftime; }