mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
新增后台部门学习进度api
This commit is contained in:
@@ -36,6 +36,8 @@ public interface UserCourseRecordService extends IService<UserCourseRecord> {
|
||||
|
||||
List<UserCourseRecord> chunk(Integer userId, List<Integer> courseIds);
|
||||
|
||||
List<UserCourseRecord> chunk(List<Integer> userId, List<Integer> courseIds);
|
||||
|
||||
PaginationResult<UserCourseRecord> paginate(
|
||||
int page, int size, UserCourseRecordPaginateFilter filter);
|
||||
|
||||
|
||||
@@ -96,6 +96,14 @@ public class UserCourseRecordServiceImpl
|
||||
return list(query().getWrapper().eq("user_id", userId).in("course_id", courseIds));
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<UserCourseRecord> chunk(List<Integer> userIds, List<Integer> courseIds) {
|
||||
if (courseIds == null || courseIds.size() == 0) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return list(query().getWrapper().in("user_id", userIds).in("course_id", courseIds));
|
||||
}
|
||||
|
||||
@Override
|
||||
public PaginationResult<UserCourseRecord> paginate(
|
||||
int page, int size, UserCourseRecordPaginateFilter filter) {
|
||||
|
||||
Reference in New Issue
Block a user