|
@ -882,9 +882,9 @@ public class ApiIndexServiceImpl implements ApiIndexService { |
|
|
.eq(PopularizeOrder::getTravelOrderId, id) |
|
|
.eq(PopularizeOrder::getTravelOrderId, id) |
|
|
.eq(PopularizeOrder::getState, "1") |
|
|
.eq(PopularizeOrder::getState, "1") |
|
|
.count(); |
|
|
.count(); |
|
|
if(count>=byId.getNum()){ |
|
|
|
|
|
return Result.error("报名人数已满,请不要重复报名!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// if(count>=byId.getNum()){ |
|
|
|
|
|
// return Result.error("报名人数已满,请不要重复报名!"); |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
//创建订单 |
|
|
//创建订单 |
|
|
BigDecimal payPrice = byId.getPrice(); |
|
|
BigDecimal payPrice = byId.getPrice(); |
|
|