diff --git a/src/main/java/com/lz/modules/performance/service/impl/IndicatorLibraryServiceImpl.java b/src/main/java/com/lz/modules/performance/service/impl/IndicatorLibraryServiceImpl.java index 0326f2ac..23851cae 100644 --- a/src/main/java/com/lz/modules/performance/service/impl/IndicatorLibraryServiceImpl.java +++ b/src/main/java/com/lz/modules/performance/service/impl/IndicatorLibraryServiceImpl.java @@ -106,6 +106,15 @@ public class IndicatorLibraryServiceImpl extends ServiceImpl statisticalByIndicatorType(Long indicatorType) { List dtos = indicatorLibraryMapper.statisticalByIndicatorType(indicatorType); StatisticalIndicatorTypeDto dto = new StatisticalIndicatorTypeDto(); + dto.setName("未分类指标"); + dto.setIndicatorType(0); + int count = indicatorLibraryMapper.countIndicatorLibrarysByIndicatorType(0); + dto.setCount(count); + if(count>0){ + dtos.add(dto); + } + + dto = new StatisticalIndicatorTypeDto(); dto.setName("全部分类"); dto.setIndicatorType(null); if(CollectionUtils.isNotEmpty(dtos)){ @@ -114,14 +123,7 @@ public class IndicatorLibraryServiceImpl extends ServiceImpl0){ - dtos.add(0,dto); - } + return dtos; }