|
|
@@ -68,17 +68,6 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
.eq(Account::getUserId, washOrder.getUserId()).update();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- // todo t_account减(上面已完成),t_investor_account冻结户减,t_investor_account商户加,t_split_record记录
|
|
|
- // todo 需要判断是否跨网点,分开处理;跨网点结算比例是消费站点分订单额的30%,充值站点分70%
|
|
|
- if (washOrder.getIsCross()) {
|
|
|
- // 跨网点订单结算比例是消费站点分订单额的30%,充值站点分70%
|
|
|
- doCrossSplit(washOrder, KymCache.INSTANCE.getInvestorAdminUserIdByUserId(washOrder.getUserId()));
|
|
|
- } else {
|
|
|
- // 不跨网点订单结算比例是消费站点分订单额的100%,消费金额*商家消费分润比例30%-消费金额*平台分润10%=消费金额*(商家消费分润比例-平台分润)
|
|
|
- doLocalSplit(washOrder);
|
|
|
- }
|
|
|
-
|
|
|
washOrder
|
|
|
.setCloseType(orderInfo.getClose_type())
|
|
|
.setAmount(orderInfo.getAmount())
|
|
|
@@ -93,6 +82,19 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
.setPayStatus(WashOrder.PAY_STATUS_已支付);
|
|
|
washOrderService.updateById(washOrder);
|
|
|
|
|
|
+
|
|
|
+ // todo t_account减(上面已完成),t_investor_account冻结户减,t_investor_account商户加,t_split_record记录
|
|
|
+ // todo 需要判断是否跨网点,分开处理;跨网点结算比例是消费站点分订单额的30%,充值站点分70%
|
|
|
+ if (washOrder.getIsCross()) {
|
|
|
+ // 跨网点订单结算比例是消费站点分订单额的30%,充值站点分70%
|
|
|
+ doCrossSplit(washOrder, KymCache.INSTANCE.getInvestorAdminUserIdByUserId(washOrder.getUserId()));
|
|
|
+ } else {
|
|
|
+ // 不跨网点订单结算比例是消费站点分订单额的100%,消费金额*商家消费分润比例30%-消费金额*平台分润10%=消费金额*(商家消费分润比例-平台分润)
|
|
|
+ doLocalSplit(washOrder);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
var walletDetail = new WalletDetail();
|
|
|
walletDetail.setUserId(washOrder.getUserId());
|
|
|
walletDetail.setType(WalletDetail.TYPE_消费);
|