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); } }