增加一个空的分页返回 防止页面报错
parent
09cd29a97a
commit
97cb960cf8
|
@ -23,10 +23,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 说明:实时地图
|
||||
|
@ -476,4 +473,22 @@ public class CmtMapController extends BaseController {
|
|||
return r;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 返回一个空的分页
|
||||
*
|
||||
* @param
|
||||
* @throws Exception
|
||||
*/
|
||||
@RequestMapping(value = "/zeroList")
|
||||
@ResponseBody
|
||||
public Object listHighRiskWork(Page page) throws Exception {
|
||||
Map<String, Object> map = new HashMap<String, Object>();
|
||||
String errInfo = "success";
|
||||
PageData pd = this.getPageData();
|
||||
page.setPd(pd);
|
||||
map.put("varList",new ArrayList<>());
|
||||
map.put("result", errInfo);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue