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

release
yefei 2 years ago
parent 4b9521ed1a
commit 87533f6469
  1. 2
      dxhy-erp/src/main/java/com/dxhy/erp/service/SignSaveInvoiceInfoService.java
  2. 5
      dxhy-erp/src/main/java/com/dxhy/erp/service/impl/SignSaveInvoiceInfoServiceImpl.java

@ -30,7 +30,7 @@ public interface SignSaveInvoiceInfoService extends MpBaseService<TdxRecordInvoi
* 数据库名称 * 数据库名称
* @since 1.0 * @since 1.0
*/ */
void saveQueryInvoiceResult(JSONObject queryInvoiceResult, String userId, String qsType, String dbName); void saveQueryInvoiceResult(JSONObject queryInvoiceResult, String userId, String qsType, String dbName) throws Exception;
/** /**
* 根据查验结果获取底账明细表数据 * 根据查验结果获取底账明细表数据

@ -56,7 +56,7 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl<SignRecord
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void saveQueryInvoiceResult(JSONObject queryInvoiceResult, String userName, String qsType, String dbName) { public void saveQueryInvoiceResult(JSONObject queryInvoiceResult, String userName, String qsType, String dbName) throws Exception {
// 获取底账表信息 // 获取底账表信息
TdxRecordInvoice recordInvoice = getRecordInvoice(queryInvoiceResult, userName, qsType); TdxRecordInvoice recordInvoice = getRecordInvoice(queryInvoiceResult, userName, qsType);
@ -186,12 +186,13 @@ public class SignSaveInvoiceInfoServiceImpl extends MpBaseServiceImpl<SignRecord
* @param recordInvoiceUpdate 请求参数 * @param recordInvoiceUpdate 请求参数
*/ */
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public void updateInvoice(TdxRecordInvoice recordInvoiceUpdate) { public void updateInvoice(TdxRecordInvoice recordInvoiceUpdate) throws Exception {
try { try {
baseMapper.update(recordInvoiceUpdate, baseMapper.update(recordInvoiceUpdate,
new QueryWrapper<TdxRecordInvoice>().eq("uuid", recordInvoiceUpdate.getUuid())); new QueryWrapper<TdxRecordInvoice>().eq("uuid", recordInvoiceUpdate.getUuid()));
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
throw new Exception(e);
} }
} }

Loading…
Cancel
Save