Commit e399d7db by “Kongxiangkun”

投票列表增加分页参数

parent 0b348df4
...@@ -494,7 +494,7 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio ...@@ -494,7 +494,7 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio
question.setDeleted(0); question.setDeleted(0);
EntityWrapper<TrResearchQuestion> ew = new EntityWrapper<>(question); EntityWrapper<TrResearchQuestion> ew = new EntityWrapper<>(question);
ew.orderBy("no", true); ew.orderBy("no", true);
ew.last("limit" + (pageNo - 1) * pageSize + "," + pageSize); ew.last("limit " + (pageNo - 1) * pageSize + "," + pageSize);
List<TrResearchQuestion> questionList = researchQuestionMapper.selectList(ew); List<TrResearchQuestion> questionList = researchQuestionMapper.selectList(ew);
TrResearchQuestionOption option = new TrResearchQuestionOption(); TrResearchQuestionOption option = new TrResearchQuestionOption();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment