|
@@ -3172,7 +3172,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
throw new BizException("该订单已经支付成功,请勿重复购买");
|
|
|
}
|
|
|
|
|
|
- StudentPaymentOrder latestOrder=userGroupOrders.stream().max(Comparator.comparing(StudentPaymentOrder::getCreateTime)).get();
|
|
|
+ StudentPaymentOrder latestOrder=userGroupOrders.stream().max(Comparator.comparing(StudentPaymentOrder::getId)).get();
|
|
|
StudentPaymentOrder newOrder = new StudentPaymentOrder();
|
|
|
BeanUtils.copyProperties(latestOrder,newOrder);
|
|
|
newOrder.setId(null);
|