From f512416c3f8dffd17ac472c832e473e59629a2e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Wed, 18 Dec 2024 18:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E4=BF=9D=E5=AD=98=E6=89=93lo?= =?UTF-8?q?g?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java index f27f903..8aa4b8d 100644 --- a/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java +++ b/main/java/shkd/repc/recon/formplugin/ReconPayreqFormPlugin.java @@ -71,6 +71,7 @@ import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.ss.usermodel.WorkbookFactory; +import shkd.utils.DobeDWUtils; import shkd.utils.OAUtils; import javax.xml.bind.DatatypeConverter; @@ -212,11 +213,16 @@ public class ReconPayreqFormPlugin extends AbstractFormPlugin implements BeforeF JSONObject ocr_jsonObject = parseOCRData(companyTaxNo, type, fileBase64, oaToken); String ocr_success = ocr_jsonObject.getString("success"); if ("true".equals(ocr_success)) { - //TODO: 发票识别成功调用OA发票识别接口 + //TODO: 发票识别成功调用OA发票保存接口 JSONArray ocrDatas = ocr_jsonObject.getJSONArray("data"); String fileId = ocr_jsonObject.getString("fileId"); JSONObject saveCheckJson = saveCheck(companyTaxNo, fileId, ocrDatas,oaToken);//返回数据 + DobeDWUtils.saveLog("FPLOG", + "OA发票","", saveCheckJson.toJSONString(), + true,"调用OA发票保存接口"); + logger.info("发票传OA保存接口:"+saveCheckJson.toJSONString()); String save_success = saveCheckJson.getString("success"); + logger.info("发票传OA保存接口2:"+save_success); if ("true".equals(save_success)){ //TODO: 生成发票登记