|
|
@@ -2430,7 +2430,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
orderDon.setStatus(OrderDon.Status.hasPayment);
|
|
|
}
|
|
|
GroupsRelation groupsRelation = groupsRelationMapper.selectById(orderDon.getRelationId());
|
|
|
- boolean mjRenew = DateUtil.isSameDay(new Date(), groupsRelation.getExpiryTime());
|
|
|
+ Date expiryTime = groupsRelation.getExpiryTime();
|
|
|
|
|
|
Long goodsId = goodsDon.getId();
|
|
|
if (!orderDon.getIsNoLogin() && sku != null) {
|
|
|
@@ -2446,7 +2446,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
this.updateById(orderDon);
|
|
|
|
|
|
//mj续费订单当天过期直接加次数
|
|
|
- if (mjRenew) {
|
|
|
+ if (expiryTime != null && DateUtil.isSameDay(new Date(), expiryTime)) {
|
|
|
mjRenewOrder(orderDon);
|
|
|
}
|
|
|
|