不查询辅建区人员数

0927cmt
zhaoyu 2024-06-05 16:00:56 +08:00
parent 36ff0c5e64
commit 2e41503d3b
1 changed files with 9 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import com.zcloud.service.mkmj.MkmjRelationService;
import com.zcloud.util.DateUtil; import com.zcloud.util.DateUtil;
import com.zcloud.util.Jurisdiction; import com.zcloud.util.Jurisdiction;
import com.zcloud.util.Tools; import com.zcloud.util.Tools;
import org.apache.commons.lang.StringUtils;
import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
@ -181,7 +182,14 @@ public class MkmjRelationController extends BaseController {
String errInfo = "success"; String errInfo = "success";
PageData pd = this.getPageData(); PageData pd = this.getPageData();
List<PageData> varList = mkmjRelationService.getAllCarAndPeopleInfoCountByArea(pd); //列出人闸机信息列表 List<PageData> varList = mkmjRelationService.getAllCarAndPeopleInfoCountByArea(pd); //列出人闸机信息列表
map.put("varList", varList); List<PageData> 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); map.put("result", errInfo);
return map; return map;
} }