Skip to content

Commit

Permalink
解决atom查询慢的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
allon2 committed Jul 16, 2020
1 parent b73c744 commit 6474701
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public ViewData Execute(ServletMessage message) throws Throwable {
params.put("status",0);
params.put("type",0);
wrapper.allEq(params);
wrapper.last("limit 20");
List<Posts> posts= sqlSession.getMapper(PostsMapper.class).selectPage(new Page(0,20),wrapper).getRecords();
for(int i=0;i<posts.size();i++){
Posts post= posts.get(i);
Expand Down

0 comments on commit 6474701

Please sign in to comment.