发布地图分页查询添加按id排序
This commit is contained in:
parent
84fb648992
commit
9da15bf9f9
@ -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())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user