Commit 18f90407 by Wangmin

题库返回按照ID倒序

parent 556759aa
...@@ -62,6 +62,8 @@ public class DbQuestionBankServiceImpl implements IDbQuestionBankService { ...@@ -62,6 +62,8 @@ public class DbQuestionBankServiceImpl implements IDbQuestionBankService {
@Override @Override
public TableDataInfo<DbQuestionBankVo> queryPageList(DbQuestionBankBo bo, PageQuery pageQuery) { public TableDataInfo<DbQuestionBankVo> queryPageList(DbQuestionBankBo bo, PageQuery pageQuery) {
LambdaQueryWrapper<DbQuestionBank> lqw = buildQueryWrapper(bo); LambdaQueryWrapper<DbQuestionBank> lqw = buildQueryWrapper(bo);
pageQuery.setOrderByColumn("id");
pageQuery.setIsAsc("desc");
Page<DbQuestionBankVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw); Page<DbQuestionBankVo> result = baseMapper.selectVoPage(pageQuery.build(), lqw);
return TableDataInfo.build(result); return TableDataInfo.build(result);
} }
......
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