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