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