|
|
@@ -2429,8 +2429,19 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
if (orderDon.getIsNoLogin()) {
|
|
|
orderDon.setStatus(OrderDon.Status.hasPayment);
|
|
|
}
|
|
|
- GroupsRelation groupsRelation = groupsRelationMapper.selectById(orderDon.getRelationId());
|
|
|
- Date expiryTime = groupsRelation.getExpiryTime();
|
|
|
+
|
|
|
+ //mj镜像续费订单
|
|
|
+ if(orderDon.getOrderType() == 2 && orderDon.getGoodsId() == 26){
|
|
|
+ GroupsRelation groupsRelation = groupsRelationMapper.selectById(orderDon.getRelationId());
|
|
|
+ if(groupsRelation != null){
|
|
|
+ Date expiryTime = groupsRelation.getExpiryTime();
|
|
|
+
|
|
|
+ //mj续费订单当天过期直接加次数
|
|
|
+ if (expiryTime != null && DateUtil.isSameDay(new Date(), expiryTime)) {
|
|
|
+ mjRenewOrder(orderDon);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
Long goodsId = goodsDon.getId();
|
|
|
if (!orderDon.getIsNoLogin() && sku != null) {
|
|
|
@@ -2443,12 +2454,8 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
//客服续费订单
|
|
|
handleServiceRenewOrder(orderDon);
|
|
|
}
|
|
|
- this.updateById(orderDon);
|
|
|
|
|
|
- //mj续费订单当天过期直接加次数
|
|
|
- if (expiryTime != null && DateUtil.isSameDay(new Date(), expiryTime)) {
|
|
|
- mjRenewOrder(orderDon);
|
|
|
- }
|
|
|
+ this.updateById(orderDon);
|
|
|
|
|
|
//调整指定规格车队下次可 停用车位数的时间
|
|
|
groupRelationFrontService.adjustGroupsParkingTime(orderDon.getRelationId(), sku);
|