瀏覽代碼

数据中心

hanfucheng 1 年之前
父節點
當前提交
6e48b50de4
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/main/java/com/sooka/sponest/data/index/service/impl/IndexViewServiceImpl.java

+ 6 - 1
src/main/java/com/sooka/sponest/data/index/service/impl/IndexViewServiceImpl.java

@@ -359,10 +359,15 @@ public class IndexViewServiceImpl extends BaseServiceImpl implements IndexViewSe
             list.add(td);
         }
         List<IndexViewInfo> indexViewInfoList = this.getBasicDataList(menuInfo);
+        String[] names = new String[]{"林业","农业","环保","资源","交通","消防","应急","水利",};
         for (IndexViewInfo indexViewInfo : indexViewInfoList){
             Map<String,Object> map1 = new HashMap<>();
             if (!indexViewInfo.getCategory().equals("共有基础数据类型")){
-                map1.put("name",indexViewInfo.getCategory());
+                for (String name : names){
+                    if (indexViewInfo.getCategory().contains(name)){
+                        map1.put("name",name);
+                    }
+                }
                 map1.put("count",indexViewInfo.getCount());
                 map1.put("updateCount",indexViewInfo.getUpdataCount());
                 BigDecimal updateRate = new BigDecimal(0).setScale(2,RoundingMode.HALF_UP);