|
|
|
@@ -367,6 +367,10 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
|
cardSpend.setCardId(cardId); |
|
|
|
cardSpend.setOrderId(orderId); |
|
|
|
cardSpend = wxCardSpendMapper.selectOne(cardSpend); |
|
|
|
if (cardSpend != null && cardSpend.getRealPayment() <= 0) { |
|
|
|
logger.error("微信分账金额为0, 无法再分"); |
|
|
|
return; |
|
|
|
} |
|
|
|
WxCardInfo cardInfo = wxCardInfoMapper.selectByPrimaryKey(cardSpend.getCardId()); |
|
|
|
WxOrder wxOrder = wxOrderMapper.selectByPrimaryKey(orderId); |
|
|
|
WxMerchant merchant = wxMerchantMapper.selectByPrimaryKey(cardSpend.getMerchantId()); |
|
|
|
@@ -387,6 +391,7 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
|
ResultData resultData = profitSharingOrderService.createSharingOrder(shareOrder); |
|
|
|
if(resultData.code != Result.SUCCESS) { |
|
|
|
// 分账异常 |
|
|
|
logger.error(resultData.message); |
|
|
|
throw new MallinkException(resultData.code, resultData.message); |
|
|
|
} |
|
|
|
|
|
|
|
|