fix: 【FCJDFDXTXS-145】两个id调个个

This commit is contained in:
liu.zixi
2025-12-16 20:32:03 +08:00
parent 8620b078d0
commit 47274373bf

View File

@@ -394,8 +394,8 @@ public class StudyServiceImpl implements IStudyService{
@Override
public PageList<StudyCourseItem> itemPage(int pageIndex, int pageSize, String contentId, String courseId, Integer status, List<String> userIdList) {
long count = scItemDao.countList(contentId, courseId, userIdList, status);
List<StudyCourseItem> list = scItemDao.queryList(contentId, courseId, userIdList, status, true, pageIndex, pageSize);
long count = scItemDao.countList(courseId, contentId, userIdList, status);
List<StudyCourseItem> list = scItemDao.queryList(courseId, contentId, userIdList, status, true, pageIndex, pageSize);
List<String> contentIds = list.stream().map(StudyCourseItem::getContentId).filter(Objects::nonNull).distinct().collect(Collectors.toList());
if (!contentIds.isEmpty()) {
List<CourseContent> contentList = courseContentService.getByIds(contentIds);