| | |
| | | @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); |
| | | StringBuffer hql = new StringBuffer("from MediaVideoLive where deleteFlag is false and name like ? "); |
| | | List<Object> args =CollectionUtils.newList(keyword + "%"); |
| | | if(portalStatus != ""){ |
| | | hql.append(" and portalStatus = ?"); |
| | | args.add(portalStatus); |
| | | } |
| | | hql.append(" order by createTime desc"); |
| | | return findList(hql.toString(), new Pager(pageSize, pageNum),args , MediaVideoLive.class); |
| | | } |
| | | |
| | | @Override |