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