1
This commit is contained in:
@@ -81,7 +81,7 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
|
|||||||
public R delCourse(int id) {
|
public R delCourse(int id) {
|
||||||
CourseCatalogueEntity courseCatalogueEntity = courseCatalogueDao.selectOne(new LambdaQueryWrapper<CourseCatalogueEntity>().eq(CourseCatalogueEntity::getCourseId, id));
|
CourseCatalogueEntity courseCatalogueEntity = courseCatalogueDao.selectOne(new LambdaQueryWrapper<CourseCatalogueEntity>().eq(CourseCatalogueEntity::getCourseId, id));
|
||||||
if (courseCatalogueEntity!=null){
|
if (courseCatalogueEntity!=null){
|
||||||
return R.error("请先删除目录后再删除!");
|
return R.error(501,"请先删除目录后再删除!");
|
||||||
}
|
}
|
||||||
this.removeById(id);
|
this.removeById(id);
|
||||||
return R.ok();
|
return R.ok();
|
||||||
|
|||||||
Reference in New Issue
Block a user