发布地图分页查询添加按id排序

This commit is contained in:
joylink_zhangsai 2020-12-11 21:22:42 +08:00
parent 84fb648992
commit 9da15bf9f9

View File

@ -181,6 +181,7 @@ public class MapService implements IMapService {
public PageVO<MapVO> queryPagedMaps(MapQueryVO queryVO) { public PageVO<MapVO> queryPagedMaps(MapQueryVO queryVO) {
PageHelper.startPage(queryVO.getPageNum(), queryVO.getPageSize()); PageHelper.startPage(queryVO.getPageNum(), queryVO.getPageSize());
MapInfoExample example = new MapInfoExample(); MapInfoExample example = new MapInfoExample();
example.setOrderByClause("id");
MapInfoExample.Criteria criteria = example.createCriteria(); MapInfoExample.Criteria criteria = example.createCriteria();
criteria.andStatusNotEqualTo(MapStatus.Delete.getCode()); criteria.andStatusNotEqualTo(MapStatus.Delete.getCode());
if (StringUtils.hasText(queryVO.getName())) { if (StringUtils.hasText(queryVO.getName())) {