From 21e7d491658dbd969adbcf0bc2f13a5d563ab863 Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: 星期四, 25 四月 2024 13:25:35 +0800
Subject: [PATCH] SPI数据,隐患等级饼图信息独立出来,调整查询方式

---
 src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java b/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java
index 79fc09e..92433a0 100644
--- a/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java
+++ b/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java
@@ -1,8 +1,10 @@
 package com.ruoyi.doublePrevention.controller;
 
 
+import com.ruoyi.doublePrevention.entity.SPI.SPIDataForPieChartRespDTO;
 import com.ruoyi.doublePrevention.entity.SPI.SPIDataReqBO;
 import com.ruoyi.doublePrevention.entity.SPI.SPIDataRespDTO;
+import com.ruoyi.doublePrevention.entity.SPI.TroubleLevel;
 import com.ruoyi.doublePrevention.service.SPIDataCountService;
 import com.ruoyi.doublePrevention.vo.ResultVO;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -23,4 +25,8 @@
         return spiDataCountService.getSPIData(spiDataReqBO);
     }
 
+    @PostMapping("/select/getSPIDataForPieChart")
+    public ResultVO<TroubleLevel> getSPIDataForPieChart(@RequestBody SPIDataReqBO spiDataReqBO) {
+        return spiDataCountService.getSPIDataForPieChart(spiDataReqBO);
+    }
 }

--
Gitblit v1.9.2