增加一个空的分页返回 防止页面报错

0927cmt
zhaoyu 2024-04-08 08:55:58 +08:00
parent 09cd29a97a
commit 97cb960cf8
1 changed files with 19 additions and 4 deletions

View File

@ -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;
}
}