主题 : 查所有分页的Content内容的方法有没有?
级别: 白丁
UID: 83998
积分:208 加为好友
威望: 1 精华: 0
主题:34 回复:110
注册时间:2015-12-23
在线时长:0
1#   发表于:2016-09-14 14:57:53  IP:218.189.*.*
我想要查询所有内容分页的方法,就是不分站点和栏目,所有已通过审核的内容。
我在后台写了一个查询方法,没有查到记录,是我的方法不对,还是另有方法。
我的方法如下:
@Autowired
private ContentDao dao;

@Transactional(readOnly = true)
public Pagination getContentPage(int pageNo, int pageSize, String title) {
String _title = "";
if (StringUtils.isNotBlank(title)) {
_title = title;
}
Integer typeId = null;
Integer currUserId = null;
Integer inputUserId = null;
boolean topLevel = false;
boolean recommend = false;
Integer siteId = null;
Integer modelId = null;
Integer channelId = null;
int orderBy = 4;
Pagination pagination = dao.getPage(_title, typeId, currUserId, inputUserId,
topLevel, recommend, ContentStatus.all, null, 
siteId, modelId, channelId, orderBy, pageNo, pageSize);


return pagination;
}
级别: 版主
UID: 70293
积分:78391 加为好友
威望: 1 精华: 0
主题:7 回复:68397
注册时间:2014-12-03
在线时长:0
2#   发表于:2016-09-14 14:59:31  IP:59.110.*.*
抱歉,论坛不提供二次开发方面的服务
1
1 共1页