|
|
@@ -841,9 +841,11 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
//若存在店铺id,校验店铺状态
|
|
|
Long yhsId = yhShopFrontService.checkShopCustomIdAndReturnShopId(customId);
|
|
|
//是否有其他规格的续费订单 若有请先关闭
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, user);
|
|
|
Integer count = orderDonMapper.selectCount(Wrappers.lambdaQuery(OrderDon.class)
|
|
|
.eq(OrderDon::getRelationId, payRequest.getRelationId())
|
|
|
.eq(OrderDon::getYhsId, yhsId)
|
|
|
+ .in(OrderDon::getUserId, userIdList)
|
|
|
.eq(OrderDon::getStatus, OrderDon.Status.noPayment).eq(OrderDon::getOrderType, 2));
|
|
|
if (count > 0) {
|
|
|
throw BusinessRuntimeException.getInstance("您有该车票未支付的续费订单..");
|