From 2e41503d3b90f6dc8f60f8a87026fd0670cc77d4 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Wed, 5 Jun 2024 16:00:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E6=9F=A5=E8=AF=A2=E8=BE=85=E5=BB=BA?= =?UTF-8?q?=E5=8C=BA=E4=BA=BA=E5=91=98=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zcloud/controller/mkmj/MkmjRelationController.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zcloud/controller/mkmj/MkmjRelationController.java b/src/main/java/com/zcloud/controller/mkmj/MkmjRelationController.java index 25f36574..6a7f76fe 100644 --- a/src/main/java/com/zcloud/controller/mkmj/MkmjRelationController.java +++ b/src/main/java/com/zcloud/controller/mkmj/MkmjRelationController.java @@ -7,6 +7,7 @@ import com.zcloud.service.mkmj.MkmjRelationService; import com.zcloud.util.DateUtil; import com.zcloud.util.Jurisdiction; import com.zcloud.util.Tools; +import org.apache.commons.lang.StringUtils; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; @@ -181,7 +182,14 @@ public class MkmjRelationController extends BaseController { String errInfo = "success"; PageData pd = this.getPageData(); List varList = mkmjRelationService.getAllCarAndPeopleInfoCountByArea(pd); //列出人闸机信息列表 - map.put("varList", varList); + List returnList = new ArrayList<>(); + for(PageData pageData:varList){ + if(StringUtils.equals(pageData.getString("AREA_NAME"),"辅建区")&&StringUtils.equals(pageData.getString("TYPE"),"person")){ + continue; + } + returnList.add(pageData); + } + map.put("varList", returnList); map.put("result", errInfo); return map; }