| | |
| | | CtUnitDTO ctUnitDTO = custClient.getUnitByUserId(userId); |
| | | String areaCode = null; |
| | | //目前没有村居数据,所以单位等级是4的也归集到3里面 |
| | | List<Integer> unitGrades = new ArrayList<>(); |
| | | |
| | | if(ctUnitDTO.getUnitGrade().equals(1)){ |
| | | terms.put("queCity", ctUnitDTO.getCity()); |
| | | areaCode = ctUnitDTO.getCity(); |
| | | unitGrades.add(ctUnitDTO.getUnitGrade()); |
| | | }else if(ctUnitDTO.getUnitGrade().equals(2)){ |
| | | terms.put("queArea", ctUnitDTO.getArea()); |
| | | areaCode = ctUnitDTO.getArea(); |
| | | unitGrades.add(ctUnitDTO.getUnitGrade()); |
| | | }else if(ctUnitDTO.getUnitGrade().equals(3) || ctUnitDTO.getUnitGrade().equals(4)){ |
| | | terms.put("queRoad", ctUnitDTO.getRoad()); |
| | | areaCode = ctUnitDTO.getRoad(); |
| | | unitGrades.add(3); |
| | | unitGrades.add(4); |
| | | } |
| | | |
| | | //目前没有村居,所以区和街道进来都是按街道展示 |
| | | String areaType = null;//兼容白云数据 |
| | | List<Integer> unitGrades = new ArrayList<>(); |
| | | if(ObjectUtils.isNotEmpty(terms.get("queRoad"))){ |
| | | terms.put("areaType","2"); |
| | | areaType = "2"; |
| | | areaCode = terms.get("queRoad")+""; |
| | | unitGrades.add(3); |
| | | unitGrades.add(4); |
| | | }else if(ObjectUtils.isNotEmpty(terms.get("queArea"))){ |
| | | terms.put("areaType","2"); |
| | | areaType = "2"; |
| | | areaCode = terms.get("queArea")+""; |
| | | unitGrades.add(2); |
| | | }else{ |
| | | areaType = "1"; |
| | | unitGrades.add(1); |
| | | areaCode = ctUnitDTO.getCity(); |
| | | } |
| | | //基础数据统计 |
| | | CaseStatisticsBaseDTO caseStatisticsBaseDTO = mapper.statisticsBase(terms); |