From b6a92bcd70d2edfb8bf2a2e784b37e1fcd036c10 Mon Sep 17 00:00:00 2001 From: Administrator <2863138610@qq.com> Date: 星期五, 18 十一月 2022 14:27:56 +0800 Subject: [PATCH] 课程管理学习端修改 --- src/main/java/com/qxueyou/scc/admin/classes/service/impl/ClassLectureService.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/qxueyou/scc/admin/classes/service/impl/ClassLectureService.java b/src/main/java/com/qxueyou/scc/admin/classes/service/impl/ClassLectureService.java index 136aa80..0e48283 100644 --- a/src/main/java/com/qxueyou/scc/admin/classes/service/impl/ClassLectureService.java +++ b/src/main/java/com/qxueyou/scc/admin/classes/service/impl/ClassLectureService.java @@ -95,12 +95,12 @@ @Override public List<MyLectureV> listLectureV(String learnerId, String chapterId, String keyword, Integer pageSize, Integer pageNum, String type) { - StringBuffer hql = new StringBuffer("from MyLectureV where subjectId=? and id.userId=? order by lectureCreateTime desc"); -// StringBuffer hql = new StringBuffer("from MyLectureV where chapterId=? and id.userId=? and status=? order by lectureCreateTime desc"); + StringBuffer hql1 = new StringBuffer("from MyLectureV where subjectId=? and id.userId=?"); + List<Object> args1 = CollectionUtils.newList(chapterId, learnerId); + List<MyLectureV> myLectureVList = findList(hql1.toString(), new Pager(pageSize, pageNum), args1, MyLectureV.class); -// List<Object> args = CollectionUtils.newList(chapterId, learnerId,ClsSubjectLecture.STATUS_DRAFT); - List<Object> args = CollectionUtils.newList(chapterId, learnerId); - + StringBuffer hql = new StringBuffer("from MyLectureV where chapterId=? and id.userId=? order by lectureCreateTime desc"); + List<Object> args = CollectionUtils.newList(myLectureVList.get(0).getChapterId(), learnerId); if (StringUtils.isNotEmpty(type)) { hql.append(" and lectureType=?"); -- Gitblit v1.8.0