|
|
@@ -1828,11 +1828,11 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
//清理之前的车票
|
|
|
GroupsRelation relation = groupsRelationMapper.selectById(preRelationId);
|
|
|
if (relation != null) {
|
|
|
- groupRelationClearService.clearRenewGroupRelation(relation);
|
|
|
//记录更换车票记录
|
|
|
Date preStartTime = relation.getStartTime();
|
|
|
Date preExpiryTime = relation.getExpiryTime();
|
|
|
|
|
|
+ groupRelationClearService.clearRenewGroupRelation(relation);
|
|
|
//获取续费规格的车票
|
|
|
GroupsRelation afterRelation = exchangeCodeService.getRelationNoOrder(afterSku, userId);
|
|
|
|
|
|
@@ -1843,7 +1843,7 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
groupsRelationMapper.updateById(afterRelation);
|
|
|
|
|
|
//保存更换车票记录
|
|
|
- saveChangeTicketRecord(preStartTime, preExpiryTime, relation.getId(), userId, preSkuId, orderId, num, afterSku, afterRelation.getId());
|
|
|
+ saveChangeTicketRecord(preStartTime, preExpiryTime, preRelationId, userId, preSkuId, orderId, num, afterSku, afterRelation.getId());
|
|
|
|
|
|
GroupsRelationView groupsRelationView = beanSearcher.searchFirst(GroupsRelationView.class, MapUtils.builder().field(GroupsRelationView::getUserId, userId)
|
|
|
.field(GroupsRelationView::getId, afterRelation.getId()).build());
|