From 97cb960cf833610300e5cf5df0cb5588f9445b76 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Mon, 8 Apr 2024 08:55:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E4=B8=AA=E7=A9=BA?= =?UTF-8?q?=E7=9A=84=E5=88=86=E9=A1=B5=E8=BF=94=E5=9B=9E=20=E9=98=B2?= =?UTF-8?q?=E6=AD=A2=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/map/CmtMapController.java | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zcloud/controller/map/CmtMapController.java b/src/main/java/com/zcloud/controller/map/CmtMapController.java index ff2dafbf..3386e9c4 100644 --- a/src/main/java/com/zcloud/controller/map/CmtMapController.java +++ b/src/main/java/com/zcloud/controller/map/CmtMapController.java @@ -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 map = new HashMap(); + String errInfo = "success"; + PageData pd = this.getPageData(); + page.setPd(pd); + map.put("varList",new ArrayList<>()); + map.put("result", errInfo); + return map; + } }