|
@@ -1034,7 +1034,7 @@ public class UserPlanServiceImpl extends ServiceImpl<UserPlanMapper, UserPlan> i
|
|
|
//总节数
|
|
//总节数
|
|
|
Integer sectionNum = planVo.getSectionNum();
|
|
Integer sectionNum = planVo.getSectionNum();
|
|
|
if(sectionNum <= 0){
|
|
if(sectionNum <= 0){
|
|
|
- throw new IllegalArgumentException("该课程没有节数,无法生成计划");
|
|
|
|
|
|
|
+ throw new IllegalArgumentException("课程错误");
|
|
|
}
|
|
}
|
|
|
//查出节的ID
|
|
//查出节的ID
|
|
|
List<Long> listId= baseMapper.selectByCourseId(planVo.getCourseId());
|
|
List<Long> listId= baseMapper.selectByCourseId(planVo.getCourseId());
|