// 分页
List<GreenChannelNoteModel> showList = new ArrayList<>();
for (int i = 0;i < limit && i < list.size() - offset;i++){
showList.add(list.get(i + offset));
}
// 分页
List<GreenChannelNoteModel> showList = new ArrayList<>();
for (int i = 0;i < limit && i < list.size() - offset;i++){
showList.add(list.get(i + offset));
}
本文标题:对于List做类mysql分页
本文链接:https://www.haomeiwen.com/subject/pqpxuctx.html
网友评论