This commit is contained in:
2017-12-16 17:50:31 +08:00
parent 7b8db12a4e
commit 24b0d7c003
8 changed files with 12 additions and 15 deletions

View File

@@ -35,7 +35,7 @@ public class IndexServlet extends BaseServlet {
public void abc(HttpRequest request, HttpResponse response){
Flipper flipper = new Flipper().limit(30).sort("top DESC,createTime DESC");
//置顶贴
FilterNode topNode = FilterNode.create("status", FilterExpress.NOTEQUAL, -1).and("top", 1);
FilterNode topNode = FilterNode.create("status", FilterExpress.NOTEQUAL, -1).and("top", FilterExpress.GREATERTHAN, 0);
Sheet<ContentInfo> top = contentService.contentQuery(flipper, topNode);
//非置顶贴