|
|
@@ -396,10 +396,10 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
|
|
|
public void changeRelation(ChangeRelationReq req) throws Exception {
|
|
|
Long relationId = req.getRelationId();
|
|
|
Long groupId = req.getGroupsId();
|
|
|
- Long yhsId = req.getYhsId();
|
|
|
UserTicketClearedRecord.Source source = req.getSource();
|
|
|
if (source == null) source = UserTicketClearedRecord.Source.change_ticket;
|
|
|
GroupsRelation relation = relationMapper.selectById(relationId);
|
|
|
+ Long yhsId = relation.getYhsId();
|
|
|
Assert.notNull(relation, "车票已不存在");
|
|
|
if (relation.getRechargeStatus() != null) {
|
|
|
throw BusinessRuntimeException.getInstance("代充账号车票无法更换车票");
|