法规意见收集-分页查询排序。
This commit is contained in:
+1
@@ -56,6 +56,7 @@ public class LawsOpinionGatherEOController extends JeroController<LawsOpinionGat
|
|||||||
@RequestParam(name="cut", defaultValue="cn") String cut,
|
@RequestParam(name="cut", defaultValue="cn") String cut,
|
||||||
HttpServletRequest req) {
|
HttpServletRequest req) {
|
||||||
QueryWrapper<LawsOpinionGatherEO> queryWrapper = QueryGenerator.initQueryWrapper(lawsOpinionGatherEO, req.getParameterMap());
|
QueryWrapper<LawsOpinionGatherEO> queryWrapper = QueryGenerator.initQueryWrapper(lawsOpinionGatherEO, req.getParameterMap());
|
||||||
|
queryWrapper.orderByDesc("start_time");
|
||||||
Page<LawsOpinionGatherEO> page = new Page<LawsOpinionGatherEO>(pageNo, pageSize);
|
Page<LawsOpinionGatherEO> page = new Page<LawsOpinionGatherEO>(pageNo, pageSize);
|
||||||
IPage<LawsOpinionGatherEO> pageList = lawsOpinionGatherEOService.page(page, queryWrapper);
|
IPage<LawsOpinionGatherEO> pageList = lawsOpinionGatherEOService.page(page, queryWrapper);
|
||||||
this.lawsOpinionGatherEOService.disposeData(pageList.getRecords(),cut);
|
this.lawsOpinionGatherEOService.disposeData(pageList.getRecords(),cut);
|
||||||
|
|||||||
Reference in New Issue
Block a user