| | |
| | | // 重新获取纠纷类型统计(基于完整的选择类型条件) |
| | | List<CaseStatisticsTypeDTO> caseStatisticsTypeDTOS = mapper.statisticsTypeFirst(terms); |
| | | |
| | | // // 如果基于选择类型的查询结果为空,则使用全量数据进行纠纷类型统计 |
| | | // if (ObjectUtils.isEmpty(caseStatisticsTypeDTOS)) { |
| | | // // 临时移除所有类型筛选条件,获取全量纠纷类型统计 |
| | | // terms.remove("canal"); |
| | | // terms.remove("canalSecond"); |
| | | // terms.remove("canalList"); |
| | | // terms.remove("canalSecondNot"); |
| | | // terms.remove("canalSecondAll"); |
| | | // caseStatisticsTypeDTOS = mapper.statisticsTypeFirst(terms); |
| | | // } |
| | | // 如果基于选择类型的查询结果为空,则使用全量数据进行纠纷类型统计 |
| | | if (ObjectUtils.isEmpty(caseStatisticsTypeDTOS)) { |
| | | // 临时移除所有类型筛选条件,获取全量纠纷类型统计 |
| | | terms.remove("canal"); |
| | | terms.remove("canalSecond"); |
| | | terms.remove("canalList"); |
| | | terms.remove("canalSecondNot"); |
| | | terms.remove("canalSecondAll"); |
| | | caseStatisticsTypeDTOS = mapper.statisticsTypeFirst(terms); |
| | | } |
| | | |
| | | if (ObjectUtils.isNotEmpty(caseStatisticsTypeDTOS)) { |
| | | sortType(caseStatisticsTypeDTOS); |
| | |
| | | } else { |
| | | terms.put("queryType", 3); |
| | | } |
| | | log.info("xsd:{}",terms); |
| | | CtUnitDTO ctUnitDTO = mapper.getUnitByGridCode(terms); |
| | | log.info("xsd:ctUnitDTO{}",ctUnitDTO); |
| | | if (ObjectUtils.isNotEmpty(ctUnitDTO)) { |
| | | if (StringUtils.isNotBlank(ctUnitDTO.getCity()) && StringUtils.isNotBlank(ctUnitDTO.getCityName())) { |
| | | registerSaveDTO.setQueCity(ctUnitDTO.getCity()); |
| | |
| | | registerSaveDTO.setQueRoad(ctUnitDTO.getRoad()); |
| | | registerSaveDTO.setQueRoadName(ctUnitDTO.getRoadName()); |
| | | } |
| | | registerSaveDTO.setWantUnitId(ctUnitDTO.getId()); |
| | | registerSaveDTO.setWantUnitName(ctUnitDTO.getUnitName()); |
| | | // registerSaveDTO.setWantUnitId(ctUnitDTO.getId()); |
| | | // registerSaveDTO.setWantUnitName(ctUnitDTO.getUnitName()); |
| | | |
| | | //网格上报的事件时间一般在凌晨,导致北京时间是昨天,所以+8小时还原为北京时间,确保在同一天内 |
| | | Date nowDate1 = DateUtils.getNowDate(); |