|
@@ -166,10 +166,10 @@ public class GroupClassServiceImpl implements GroupClassService {
|
|
|
if (Objects.isNull(practiceGroup)) {
|
|
|
throw new BizException("指定的课程组不存在");
|
|
|
}
|
|
|
- List<StudentPaymentOrder> orders = studentPaymentOrderDao.findOrderByGroup(practiceGroup.getId().toString(), GroupType.PRACTICE, DealStatusEnum.SUCCESS);
|
|
|
- if (CollectionUtils.isEmpty(orders)) {
|
|
|
- throw new BizException("未获取到订单");
|
|
|
- }
|
|
|
+// List<StudentPaymentOrder> orders = studentPaymentOrderDao.findOrderByGroup(practiceGroup.getId().toString(), GroupType.PRACTICE, DealStatusEnum.SUCCESS);
|
|
|
+// if (CollectionUtils.isEmpty(orders)) {
|
|
|
+// throw new BizException("未获取到订单");
|
|
|
+// }
|
|
|
if (!practiceGroup.getGroupStatus().equals(GroupStatusEnum.NORMAL) || practiceGroup.getCoursesExpireDate().before(now)) {
|
|
|
throw new BizException("当前课程组不可关闭");
|
|
|
}
|