Skip to content

Commit

Permalink
⬆️ upgrade anima
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Apr 13, 2018
1 parent ba4a7e7 commit 944837e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<sqlite.version>3.21.0.1</sqlite.version>
<blade-mvc.version>2.0.7-R3</blade-mvc.version>
<anima.version>0.1.2</anima.version>
<anima.version>0.1.3</anima.version>
<blade-tpl.verion>0.1.2</blade-tpl.verion>
<blade-validator>0.0.2</blade-validator>
<commonmark.version>0.11.0</commonmark.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class CommentController extends BaseController {
public String index(@Param(defaultValue = "1") int page,
@Param(defaultValue = "15") int limit, Request request) {
Users users = this.user();
Page<Comments> commentPage = select().from(Comments.class).where(Comments::getAuthorId).not(users.getUid()).page(page, limit);
Page<Comments> commentPage = select().from(Comments.class).where(Comments::getAuthorId).notEq(users.getUid()).page(page, limit);
request.attribute("comments", commentPage);
return "admin/comment_list";
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tale/service/ContentsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public Page<Contents> getArticles(Integer mid, int page, int limit) {
String sql = "select a.* from t_contents a left join t_relationships b on a.cid = b.cid " +
"where b.mid = "+mid+" and a.status = 'publish' and a.type = 'post' order by a.created desc";

return select().from(Contents.class).page(sql, page, limit);
return select().bySQL(Contents.class, sql).page(page, limit);
}

}

0 comments on commit 944837e

Please sign in to comment.