ormlite 排序

来源:互联网 发布:java filter过滤器 编辑:程序博客网 时间:2024/06/04 19:24



//正序

orderBy("Id", true)


//倒序

orderBy("Id", false)


all = dao.queryBuilder().orderBy("Id", true).where().eq("Type", key).and().eq("owner", Pub.user.getAccount()).and().eq("UserType", Pub.user.getUserType()).query(); 

0 0
原创粉丝点击