|
|
@@ -328,9 +328,12 @@ public class CmsOrderDonServiceImpl extends ServiceImpl<OrderDonMapper,OrderDon>
|
|
|
OrderDon orderDon = orderDonMapper.selectOne(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getUserId, userId)
|
|
|
.eq(OrderDon::getRelationId, relationId)
|
|
|
- .notIn(OrderDon::getStatus, Constant.noOrderAllStatus)
|
|
|
+ .notIn(OrderDon::getStatus, Constant.noOrderStatus)
|
|
|
.last("limit 1"));
|
|
|
Assert.notNull(orderDon, "订单不存在");
|
|
|
+ if (orderDon.getStatus() == OrderDon.Status.refund) {
|
|
|
+ throw BusinessRuntimeException.getInstance("订单已退款");
|
|
|
+ }
|
|
|
|
|
|
//获取新车队
|
|
|
LambdaQueryWrapper<GroupsTrips> queryWrapper = Wrappers.lambdaQuery(GroupsTrips.class)
|