예제 #1
0
 // TODO 搜索并没有完成
 public List<ShareModel> search(int pageSize, int userId, String keyword) {
   String sql =
       "select id,userId,name,imageURL,content,createTime from share where userId <> ? order by createTime desc limit ? ";
   List<ShareModel> list = find(sql, userId, pageSize);
   return CollectionUtils.toSafeList(list);
 }
예제 #2
0
 public List<ShareModel> search(String keyword, int pageSize) {
   String sql = "select * from share limit ? ";
   List<ShareModel> list = find(sql, pageSize);
   return CollectionUtils.toSafeList(list);
 }