|
|
@@ -1864,15 +1864,15 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
//保存更换车票记录
|
|
|
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());
|
|
|
+ GroupsRelationView groupsRelationView = groupsRelationMapper.getGroupRelationViewByUserIdAndRelationId(userId, afterRelation.getId());
|
|
|
+
|
|
|
try {
|
|
|
//发放更换车票模板消息通知用户
|
|
|
- log.info("发送更换用户:{}车票:{}通知消息start=====>", userId, afterRelation.getId());
|
|
|
+ log.info("发送更换用户:{}车票:{}通知消息start=====>", userId, groupsRelationView.getId());
|
|
|
templateCommonService.sendUpdateAccountMsgNotify(groupsRelationView);
|
|
|
log.info("发送更换用户车票通知消息end=====>");
|
|
|
} catch (Exception e) {
|
|
|
- log.error("发送更换用户:{}车票:{}通知消息错误e:{}", userId, afterRelation.getId(), StringUtil.getErrorText(e));
|
|
|
+ log.error("发送更换用户:{}车票:{}通知消息错误e:{}", userId, groupsRelationView.getId(), StringUtil.getErrorText(e));
|
|
|
}
|
|
|
} else {
|
|
|
//之前的车票已被清除 加续费时间加到新的车票上
|