| | |
| | | @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=?"); |