| | |
| | | |
| | | @Override |
| | | public Result add(String name, String content, String teacherId, String teacherName , String subjectId, String subjectName, |
| | | String definition, String imgPath, Date startTime, Date endTime, Integer courseId, boolean record, List<String> classIds) { |
| | | String definition, String imgPath, Date startTime, Date endTime, Integer courseId, boolean record, List<String> classIds,String portalStatus) { |
| | | |
| | | UserTeacher teacher = teacherService.getTeacherByUserId(ClientUtils.getUserId()); |
| | | |
| | |
| | | live.setPreviewImgUrl(imgPath); |
| | | live.setStartTime(startTime); |
| | | live.setEndTime(endTime); |
| | | live.setPortalStatus(portalStatus); |
| | | live.setStatus(MediaVideoLive.STATUS_LIVE_DRAFT); |
| | | |
| | | if(teacher!=null){ |
| | |
| | | |
| | | return this.findCountByComplexHql(hql.toString(), params); |
| | | } |
| | | |
| | | @Override |
| | | public List<MediaVideoLive> listOfMine(String keyword, Integer pageNum, Integer pageSize) { |
| | | |
| | | String hql = "from MediaVideoLive where deleteFlag is false and name like ? and createId=? order by createTime desc"; |
| | | |
| | | return findList(hql, new Pager(pageSize, pageNum), CollectionUtils.newList(keyword + "%",ClientUtils.getUserId()), MediaVideoLive.class); |
| | | @Override |
| | | public List<MediaVideoLive> listvideo(String status) { |
| | | |
| | | String hql = "from MediaVideoLive where deleteFlag is false and status=? order by createTime desc"; |
| | | |
| | | |
| | | return find(hql, CollectionUtils.newList(status), MediaVideoLive.class); |
| | | } |
| | | |
| | | @Override |
| | | public List<MediaVideoLive> listOfMine(String keyword,String portalStatus, Integer pageNum, Integer pageSize) { |
| | | |
| | | String hql = "from MediaVideoLive where deleteFlag is false and name like ? and portalStatus = ? order by createTime desc"; |
| | | |
| | | |
| | | return findList(hql, new Pager(pageSize, pageNum), CollectionUtils.newList(keyword + "%",portalStatus), MediaVideoLive.class); |
| | | } |
| | | |
| | | @Override |