From 7397ecc5ece83e861a215b17ac65515a8ed8c44b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Mon, 21 Jul 2025 15:21:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B6=E4=BB=96=E5=8F=91?= =?UTF-8?q?=E7=A5=A8=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repc/recon/formplugin/ReconPayreqFormPlugin.java | 9 ++++++++- .../formplugin/dynamic/ReconPayreqNewFormPlugin.java | 8 +++++++- .../shkd/repc/recon/opplugin/YongyouBIPOperation.java | 6 +++--- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java index 9694965..9fbabfa 100644 --- a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java @@ -349,7 +349,14 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF qeug_invoiceno = details.getString("number");//发票号码 qeug_amount = details.getBigDecimal("total");//总金额 qeug_bizdate = details.getDate("date");//填开日期 - }else{ + } else if ("102015".equals(invoiceType)) { + //102015【其他发票】 + qeug_invoicecode = details.getString("bill_number"); + qeug_invoiceno = details.getString("bill_code"); + qeug_amount = details.getBigDecimal("total");//总金额 + qeug_bizdate = details.getDate("date");//填开日期 + } + else{ parseFlag = false; this.getView().showTipNotification(name +":发票识别失败:请上传有效发票"); } diff --git a/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java b/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java index d658d68..c485ee3 100644 --- a/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/dynamic/ReconPayreqNewFormPlugin.java @@ -314,7 +314,13 @@ public class ReconPayreqNewFormPlugin extends AbstractFormPlugin implements Befo qeug_invoiceno = details.getString("number");//发票号码 qeug_amount = details.getBigDecimal("total");//总金额 qeug_bizdate = details.getDate("date");//填开日期 - }else{ + } else if ("102015".equals(invoiceType)) { + //102015【其他发票】 + qeug_invoicecode = details.getString("bill_number"); + qeug_invoiceno = details.getString("bill_code"); + qeug_amount = details.getBigDecimal("total");//总金额 + qeug_bizdate = details.getDate("date");//填开日期 + } else{ parseFlag = false; this.getView().showTipNotification(name +":发票识别失败:请上传有效发票"); } diff --git a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java index e9643aa..25a34b9 100644 --- a/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java +++ b/main/java/shkd/repc/recon/opplugin/YongyouBIPOperation.java @@ -930,10 +930,10 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen def4Builder.append(typeName).append(":").append(String.join(",", numbers)); }); - // 截取200字符 + // 截取100字符 String def4Value = def4Builder.toString(); - if (def4Value.length() > 200) { - def4Value = def4Value.substring(0, 200); + if (def4Value.length() > 100) { + def4Value = def4Value.substring(0, 100); } payData.put("def4", def4Value); }