mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-08-20 12:29:30 +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
|
@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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user