From 2dad15e0c3d8f2acc5ad4b5876c37c106b6e1414 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Fri, 28 Dec 2018 18:21:08 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=82=A8=E5=80=BC=E5=8D=A1][=E4=BF=AE?= =?UTF-8?q?=E6=94=B9]:20=E6=AC=A1=E9=99=90=E5=88=B6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/iformall/service/impl/WxCardSpendServiceImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java index 64517e850..afa8288f9 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxCardSpendServiceImpl.java @@ -285,7 +285,6 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { } - @Override @Transactional(propagation = Propagation.REQUIRED, readOnly = false, rollbackFor = {Exception.class}) public void shareForCardPay(String tenantId, Long cardId, Long orderId, Long cardSpendId) { @@ -300,6 +299,9 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { logger.error("微信分账已超过限制次数-20次"); throw new MallinkException(ErrorCode.PROFIT_SHARING_NUM_UP_LIMIT); } + } catch (MallinkException e) { + logger.error(e.getMessage()); + throw new MallinkException(e.getErrorCode(), e.getMessage()); } catch (Exception e) { logger.error(e.getMessage()); throw new MallinkException(ErrorCode.DB_FAIL);