|
|
@@ -1,5 +1,6 @@
|
|
|
package org.jeecg.modules.system.app.service.impl;
|
|
|
|
|
|
+import cn.hutool.core.collection.CollUtil;
|
|
|
import cn.hutool.core.date.DateTime;
|
|
|
import cn.hutool.core.util.ObjUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
@@ -451,6 +452,9 @@ public class AppCoureseServiceImpl extends ServiceImpl<AppCoursesMapper, AppCour
|
|
|
List<AppClassGrouping> appClassGroupings = appClassGroupingMapper.selectList(Wrappers.<AppClassGrouping>lambdaQuery()
|
|
|
.eq(AppClassGrouping::getCoachUserId, user.getId())
|
|
|
.eq(AppClassGrouping::getCourseId, appCoursesPriceRules.getCoursesId()));
|
|
|
+ if(CollUtil.isEmpty(appClassGroupings)){
|
|
|
+ throw new JeecgBootException("请先创建课程分班");
|
|
|
+ }
|
|
|
AppClassUser appClassUser = new AppClassUser();
|
|
|
appClassUser.setClassGroupingId(appClassGroupings.get(0).getId());
|
|
|
appClassUser.setCourseId(appCoursesPriceRules.getCoursesId());
|