派生自 projectDept/qhighschool

Administrator
2022-11-18 b6a92bcd70d2edfb8bf2a2e784b37e1fcd036c10
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=?");