Commit 656e50c4d3b028ddbc8da6a04f9c0576c4c7ebb8

Authored by 陈浩
Committed by 周伟鹏
1 parent ed838480

update

src/main/java/com/cnlive/shenhe/serviceImpl/CommentsServiceImpl.java
... ... @@ -12,6 +12,7 @@ import com.cnlive.shenhe.utils.CommonConst;
12 12 import com.cnlive.shenhe.utils.CommonUtils;
13 13 import com.github.pagehelper.PageHelper;
14 14 import com.github.pagehelper.PageInfo;
  15 +import org.apache.ibatis.session.RowBounds;
15 16 import org.slf4j.Logger;
16 17 import org.slf4j.LoggerFactory;
17 18 import org.springframework.beans.factory.annotation.Autowired;
... ... @@ -46,7 +47,7 @@ public class CommentsServiceImpl {
46 47  
47 48 //**************************************
48 49 public List<ShyComments> findshyComments(ShyComments shyComments) {
49   - List<ShyComments> commentsList = shyCommentsMapper.select(shyComments);
  50 + List<ShyComments> commentsList = shyCommentsMapper.selectByRowBounds(shyComments,new RowBounds(0,100));
50 51 return commentsList;
51 52 }
52 53  
... ...
src/main/java/com/cnlive/shenhe/serviceImpl/VideosServiceImpl.java
... ... @@ -9,6 +9,7 @@ import com.cnlive.shenhe.mapper.ShyVideosMapper;
9 9 import com.cnlive.shenhe.utils.CommonUtils;
10 10 import com.github.pagehelper.PageHelper;
11 11 import com.github.pagehelper.PageInfo;
  12 +import org.apache.ibatis.session.RowBounds;
12 13 import org.springframework.beans.factory.annotation.Autowired;
13 14 import org.springframework.stereotype.Service;
14 15 import tk.mybatis.mapper.entity.Example;
... ... @@ -45,7 +46,7 @@ public class VideosServiceImpl {
45 46 }
46 47  
47 48 public List<ShyVideos> findshyVideo(ShyVideos shyVideos) {
48   - List<ShyVideos> shyVideoslist = shyVideosMapper.select(shyVideos);
  49 + List<ShyVideos> shyVideoslist = shyVideosMapper.selectByRowBounds(shyVideos,new RowBounds(0,100));
49 50 return shyVideoslist;
50 51 }
51 52  
... ...