|
|
@@ -364,6 +364,10 @@ public class VipOrderDonServiceImpl extends ServiceImpl<VipOrderDonMapper, VipOr
|
|
|
.in(VipUser::getUserId, userIdList)
|
|
|
.last("limit 1"))).orElse(new VipUser());
|
|
|
vipUser.setUserId(userId);
|
|
|
+ //金额大于0 是否是分销订单
|
|
|
+ if (orderDon.getMoney().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
+ handlerDistributeOrder(orderDon);
|
|
|
+ }
|
|
|
//发放会员车票 普通订单
|
|
|
if (orderDon.getOrderType() == 1) {
|
|
|
vipUser.setStartTime(DateTime.now());
|
|
|
@@ -383,10 +387,6 @@ public class VipOrderDonServiceImpl extends ServiceImpl<VipOrderDonMapper, VipOr
|
|
|
//续费订单
|
|
|
setTicketToVipExpiryTime(userIdList, vipUser.getUserId(), vipUser.getExpiryTime());
|
|
|
}
|
|
|
- //金额大于0 是否是分销订单
|
|
|
- if (orderDon.getMoney().compareTo(BigDecimal.ZERO) > 0) {
|
|
|
- handlerDistributeOrder(orderDon);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
private void sendVipTicketToUser(Long userId, Date vipExpiryTime, List<Long> userIds, Long orderId) {
|