mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-10 20:04:06 +08:00
fixed: 线上课列表空数据报错
This commit is contained in:
parent
a98018a7c0
commit
c66043331c
@ -181,6 +181,9 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
||||
|
||||
@Override
|
||||
public Map<Integer, List<Integer>> getCategoryIdsGroup(List<Integer> courseIds) {
|
||||
if (courseIds == null || courseIds.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
Map<Integer, List<ResourceCourseCategory>> data = courseCategoryService
|
||||
.list(courseCategoryService.query().getWrapper().in("course_id", courseIds))
|
||||
.stream()
|
||||
@ -194,6 +197,9 @@ public class CourseServiceImpl extends ServiceImpl<CourseMapper, Course> impleme
|
||||
|
||||
@Override
|
||||
public Map<Integer, List<Integer>> getDepIdsGroup(List<Integer> courseIds) {
|
||||
if (courseIds == null || courseIds.size() == 0) {
|
||||
return null;
|
||||
}
|
||||
Map<Integer, List<CourseDepartment>> data = courseDepartmentService
|
||||
.list(courseDepartmentService.query().getWrapper().in("course_id", courseIds))
|
||||
.stream()
|
||||
|
Loading…
x
Reference in New Issue
Block a user