|
@@ -831,6 +831,10 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
log.error("车位异常 groupId:{}", relation.getGroupsId());
|
|
log.error("车位异常 groupId:{}", relation.getGroupsId());
|
|
|
throw new BusinessRuntimeException("车位异常");
|
|
throw new BusinessRuntimeException("车位异常");
|
|
|
}
|
|
}
|
|
|
|
|
+ GroupsTrips groupsTrips = groupsMapper.selectOne(Wrappers.lambdaQuery(GroupsTrips.class).eq(GroupsTrips::getId, relation.getGroupsId()).last("limit 1"));
|
|
|
|
|
+ if (groupsTrips.getAvailableNum() == 0) {
|
|
|
|
|
+ groupsMapper.tripsFullSeat(groupsTrips.getId());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -842,6 +846,10 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
log.error("车位异常 groupId:{}", relation.getGroupsId());
|
|
log.error("车位异常 groupId:{}", relation.getGroupsId());
|
|
|
throw new BusinessRuntimeException("车位异常");
|
|
throw new BusinessRuntimeException("车位异常");
|
|
|
}
|
|
}
|
|
|
|
|
+ GroupsTrips groupsTrips = groupsMapper.selectOne(Wrappers.lambdaQuery(GroupsTrips.class).eq(GroupsTrips::getId, relation.getGroupsId()).last("limit 1"));
|
|
|
|
|
+ if (groupsTrips.getIsFullSeat()) {
|
|
|
|
|
+ groupsMapper.tripsNoFullSeat(groupsTrips.getId());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void saveTransport(Long addressId, Long orderId) {
|
|
public void saveTransport(Long addressId, Long orderId) {
|