From c7125c4e974554a7ecb24c4c4f9942212cc83538 Mon Sep 17 00:00:00 2001 From: yefei Date: Mon, 16 Oct 2023 14:49:43 +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, 8 insertions(+), 3 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 8d003c3d..669e027b 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 @@ -615,6 +615,7 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService { * @param taxno 税号 * @param db 数据库 */ + @Transactional(rollbackFor = Exception.class) public void invoiceSelectConsumer(String responseJson, TDxHttpLog httpLog, String taxno, String db) { String total = ""; @@ -752,9 +753,13 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService { } httpLog.setStatus("1"); httpLog.setTotal(total); - confirmDao.insert(httpLog); - if (logList.size() > 0) { - invoiceLogService.toInvoiceLog(logList); + try { + confirmDao.insert(httpLog); + if (logList.size() > 0) { + invoiceLogService.toInvoiceLog(logList); + } + }catch (Exception e){ + e.printStackTrace(); } } catch (Exception e) {