From 4b9521ed1a530c1442ea1ea7d5fb8ce86160cc31 Mon Sep 17 00:00:00 2001 From: yefei Date: Mon, 16 Oct 2023 15:14:32 +0800 Subject: [PATCH] =?UTF-8?q?ariesy=20=E5=A2=9E=E5=8A=A0=E6=B3=A8=E8=A7=A3&?= =?UTF-8?q?=E6=8F=92=E5=85=A5=E6=97=A5=E5=BF=97=E6=97=B6=E6=8D=95=E8=8E=B7?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/service/impl/InvoiceInterfaceServiceImpl.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/dxhy-core/src/main/java/com/dxhy/core/job/service/impl/InvoiceInterfaceServiceImpl.java b/dxhy-core/src/main/java/com/dxhy/core/job/service/impl/InvoiceInterfaceServiceImpl.java index 669e027b..3a5e4c66 100644 --- a/dxhy-core/src/main/java/com/dxhy/core/job/service/impl/InvoiceInterfaceServiceImpl.java +++ b/dxhy-core/src/main/java/com/dxhy/core/job/service/impl/InvoiceInterfaceServiceImpl.java @@ -616,7 +616,7 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService { * @param db 数据库 */ @Transactional(rollbackFor = Exception.class) - public void invoiceSelectConsumer(String responseJson, TDxHttpLog httpLog, String taxno, String db) { + public void invoiceSelectConsumer(String responseJson, TDxHttpLog httpLog, String taxno, String db) throws Exception { String total = ""; try { @@ -760,13 +760,20 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService { } }catch (Exception e){ e.printStackTrace(); + throw new Exception(e); } } catch (Exception e) { httpLog.setStatus("2"); httpLog.setTotal(total); - confirmDao.insert(httpLog); + try { + confirmDao.insert(httpLog); + }catch (Exception exe){ + exe.printStackTrace(); + throw new Exception(exe); + } e.printStackTrace(); + throw new Exception(e); } }