|
@@ -5144,17 +5144,10 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
|
|
|
throw new BizException("课程信息错误");
|
|
|
}
|
|
|
|
|
|
- Date date=new Date();
|
|
|
+ Date date = new Date();
|
|
|
|
|
|
PracticeGroup practiceGroup = practiceGroupDao.get(practiceGroupBuyParams.getPracticeGroupId());
|
|
|
|
|
|
- if(classGroup.getStudentNum() > 0){
|
|
|
- int i = studentPaymentOrderDao.countGroupOrderWithoutFailed(practiceGroupBuyParams.getPracticeGroupId().toString(),GroupType.PRACTICE);
|
|
|
- if(i <= 0){
|
|
|
- throw new BizException("该课程已经无法通过购买加入,请联系教务老师!");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
VipGroupActivity vipGroupActivity = null;
|
|
|
if(Objects.nonNull(practiceGroup.getVipGroupActivityId())){
|
|
|
vipGroupActivity = vipGroupActivityDao.get(practiceGroup.getVipGroupActivityId().intValue());
|