添加分页功能
parent
7136bb9a37
commit
92dabf2a7c
|
@ -25,9 +25,12 @@ public class DwController extends BaseController {
|
|||
}
|
||||
|
||||
@RequestMapping(value = "getMapList")
|
||||
public Object getMapList() throws Exception {
|
||||
public Object getMapList(Page page) throws Exception {
|
||||
PageData pd = this.getPageData();
|
||||
MapGet mapGet = JSONObject.parseObject(JSONObject.toJSONString(pd), MapGet.class);
|
||||
mapGet.getPage().setPage(page.getPage());
|
||||
mapGet.getPage().setCurrent(page.getCurrent());
|
||||
mapGet.getPage().setSize(page.getSize());
|
||||
return dwService.getMapList(mapGet);
|
||||
}
|
||||
|
||||
|
@ -39,9 +42,12 @@ public class DwController extends BaseController {
|
|||
}
|
||||
|
||||
@RequestMapping(value = "getAlarmList")
|
||||
public Object getAlarmList() throws Exception {
|
||||
public Object getAlarmList(Page page) throws Exception {
|
||||
PageData pd = this.getPageData();
|
||||
AlarmGet mapGet = JSONObject.parseObject(JSONObject.toJSONString(pd), AlarmGet.class);
|
||||
mapGet.getPage().setPage(page.getPage());
|
||||
mapGet.getPage().setCurrent(page.getCurrent());
|
||||
mapGet.getPage().setSize(page.getSize());
|
||||
return dwService.getAlarmList(mapGet);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue