广州市综治平台后端
huangh
2025-06-10 e1fe6e5a6011615e80cebd6c8ca230ce35350096
fix: 纠纷台账案由类型统计错误修复
1 files modified
20 ■■■■ changed files
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseInfoService.java 20 ●●●● patch | view | raw | blame | history
dyh-service/dyh-mediate/src/main/java/cn/huge/module/cases/service/CaseInfoService.java
@@ -2203,16 +2203,16 @@
        // 重新获取纠纷类型统计(基于完整的选择类型条件)
        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);