ariesy 增加注解&插入日志时捕获异常

release
yefei 2 years ago
parent 1d8c3759a9
commit c7125c4e97
  1. 5
      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,10 +753,14 @@ public class InvoiceInterfaceServiceImpl implements InvoiceInterfaceService {
}
httpLog.setStatus("1");
httpLog.setTotal(total);
try {
confirmDao.insert(httpLog);
if (logList.size() > 0) {
invoiceLogService.toInvoiceLog(logList);
}
}catch (Exception e){
e.printStackTrace();
}
} catch (Exception e) {
httpLog.setStatus("2");

Loading…
Cancel
Save