Browse Source

完成首页获取全部行业的企业数接口

ljx 1 month ago
parent
commit
aa1da86a2c

+ 10 - 1
enteprise-admin/src/main/java/com/enteprise/industry_oveview/controller/IndustryOverviewController.java

@@ -54,13 +54,22 @@ public class IndustryOverviewController extends BaseController
      */
     @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:list')")
     @GetMapping("/i_list")
-    public TableDataInfo i_list()
+    public TableDataInfo iList()
     {
         startPage();
         List<IndustryCount> list = industryOverviewService.selectIndustryCountList();
         return getDataTable(list);
     }
 
+    @PreAuthorize("@ss.hasPermi('industry_oveview:industry_oveview:list')")
+    @GetMapping("/i_all_list")
+    public TableDataInfo iAllList()
+    {
+        //startPage();
+        List<IndustryCount> list = industryOverviewService.countAllIndustries();
+        return getDataTable(list);
+    }
+
     /**
      * 导出industry_oveview列表
      */

+ 1 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/mapper/IndustryOverviewMapper.java

@@ -64,4 +64,5 @@ public interface IndustryOverviewMapper
     public List<IndustryCount> selectIndustryCount();
 
     public List<IndustryOverview> countAllIndustryOverview();
+
 }

+ 2 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/service/IIndustryOverviewService.java

@@ -62,4 +62,6 @@ public interface IIndustryOverviewService
      * @return 结果
      */
     public int deleteIndustryOverviewById(Long id);
+
+    public List<IndustryCount> countAllIndustries();
 }

+ 6 - 0
enteprise-admin/src/main/java/com/enteprise/industry_oveview/service/impl/IndustryOverviewServiceImpl.java

@@ -73,6 +73,11 @@ public class IndustryOverviewServiceImpl implements IIndustryOverviewService
         return collect;
     }
 
+    @Override
+    public List<IndustryCount> countAllIndustries() {
+        return industryOverviewMapper.selectIndustryCount();
+    }
+
     /**
      * 新增industry_oveview
      * 
@@ -120,4 +125,5 @@ public class IndustryOverviewServiceImpl implements IIndustryOverviewService
     {
         return industryOverviewMapper.deleteIndustryOverviewById(id);
     }
+
 }