|
@@ -5036,7 +5036,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
if(practiceGroup.getPaymentExpireDate().before(date)){
|
|
if(practiceGroup.getPaymentExpireDate().before(date)){
|
|
throw new BizException("该课程已结束报名!");
|
|
throw new BizException("该课程已结束报名!");
|
|
}
|
|
}
|
|
- if(practiceGroup.getStudentId().equals(user.getId())){
|
|
|
|
|
|
+ if(!practiceGroup.getStudentId().equals(user.getId())){
|
|
throw new BizException("您无法购买此课程");
|
|
throw new BizException("您无法购买此课程");
|
|
}
|
|
}
|
|
|
|
|