|
|
@@ -248,8 +248,8 @@ public class WxCardSpendServiceImpl implements WxCardSpendService { |
|
|
shareOrder.setTransactionId(cardInfo.getTransactionId()); |
|
|
shareOrder.setTransactionId(cardInfo.getTransactionId()); |
|
|
shareOrder.setShareAmount(cardSpend.getRealPayment()); |
|
|
shareOrder.setShareAmount(cardSpend.getRealPayment()); |
|
|
profitSharingOrderService.createSharingOrder(shareOrder); |
|
|
profitSharingOrderService.createSharingOrder(shareOrder); |
|
|
if(cardSpend.getCardRemainRealAmount() == 0) { |
|
|
|
|
|
shareOrder.setPayAmount(cardInfo.getSaleAmount()); |
|
|
|
|
|
|
|
|
if(cardSpend.getCardRemainAmount() <= 0) { |
|
|
|
|
|
shareOrder.setPayAmount(cardInfo.getRemainingShareFeeAmount()); |
|
|
shareOrder.setType(EnumProfitSharingOrderType.PROFIT_SHARING_FINISH.getCode()); |
|
|
shareOrder.setType(EnumProfitSharingOrderType.PROFIT_SHARING_FINISH.getCode()); |
|
|
profitSharingOrderService.finishSharingOrder(shareOrder); |
|
|
profitSharingOrderService.finishSharingOrder(shareOrder); |
|
|
} |
|
|
} |
|
|
|