mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
fixed: null报错,提升系统稳定性
This commit is contained in:
@@ -98,7 +98,7 @@ public class UserCourseRecordServiceImpl
|
||||
|
||||
@Override
|
||||
public List<UserCourseRecord> chunk(List<Integer> userIds, List<Integer> courseIds) {
|
||||
if (courseIds == null || courseIds.size() == 0) {
|
||||
if (courseIds == null || courseIds.size() == 0 || userIds == null || userIds.size() == 0) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return list(query().getWrapper().in("user_id", userIds).in("course_id", courseIds));
|
||||
|
||||
Reference in New Issue
Block a user