mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-22 18:29:51 +08:00
课程分类删除
This commit is contained in:
@@ -36,4 +36,6 @@ public interface CourseService extends IService<Course> {
|
||||
List<Integer> getCategoryIdsByCourseId(Integer courseId);
|
||||
|
||||
void updateClassHour(Integer courseId, Integer classHour);
|
||||
|
||||
void removeCategoryIdRelate(Integer categoryId);
|
||||
}
|
||||
|
||||
@@ -183,6 +183,11 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
||||
course.setClassHour(classHour);
|
||||
updateById(course);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void removeCategoryIdRelate(Integer categoryId) {
|
||||
categoryCourseService.remove(categoryCourseService.query().getWrapper().eq("category_id", categoryId));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user