|
@@ -108,6 +108,10 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
|
|
|
|
|
washOrderService.updateById(washOrder);
|
|
washOrderService.updateById(washOrder);
|
|
|
|
|
|
|
|
|
|
+ // 订单金额为0的订单不处理
|
|
|
|
|
+ if (orderInfo.getAmount() == 0) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// t_account减(上面已完成),t_station_account冻结户减,t_station_account商户加,t_split_record记录
|
|
// t_account减(上面已完成),t_station_account冻结户减,t_station_account商户加,t_split_record记录
|
|
|
// 需要判断是否跨网点,分开处理;跨网点结算比例是消费站点分订单额的30%,充值站点分70%
|
|
// 需要判断是否跨网点,分开处理;跨网点结算比例是消费站点分订单额的30%,充值站点分70%
|
|
@@ -119,7 +123,6 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
doLocalSplit(washOrder);
|
|
doLocalSplit(washOrder);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
var walletDetail = new WalletDetail();
|
|
var walletDetail = new WalletDetail();
|
|
|
walletDetail.setUserId(washOrder.getUserId());
|
|
walletDetail.setUserId(washOrder.getUserId());
|
|
|
walletDetail.setType(WalletDetail.TYPE_消费);
|
|
walletDetail.setType(WalletDetail.TYPE_消费);
|
|
@@ -142,8 +145,7 @@ public class OrderCloseEventHandler implements AwoaraEventHandler<OrderInfoObjec
|
|
|
deductions(washOrder, account);
|
|
deductions(washOrder, account);
|
|
|
|
|
|
|
|
// 判断消费金额是否达标,达标发送领取停车优惠券消息
|
|
// 判断消费金额是否达标,达标发送领取停车优惠券消息
|
|
|
-// if (orderInfo.getAmount() >= WashOrder.PARKING_COUPON_MIN_AMOUNT) {
|
|
|
|
|
- if (orderInfo.getAmount() >= 0) {
|
|
|
|
|
|
|
+ if (orderInfo.getAmount() >= WashOrder.PARKING_COUPON_MIN_AMOUNT) {
|
|
|
var parkingCouponUrl = KymCache.INSTANCE.getParkingQrCodeUrlByStationId(washOrder.getStationId());
|
|
var parkingCouponUrl = KymCache.INSTANCE.getParkingQrCodeUrlByStationId(washOrder.getStationId());
|
|
|
// 维码链接做转换防止重复使用,有效期2小时
|
|
// 维码链接做转换防止重复使用,有效期2小时
|
|
|
var code = UUID.randomUUID().toString();
|
|
var code = UUID.randomUUID().toString();
|