From b1cb0d6fe00a736a68f265aa129bc605b11bc986 Mon Sep 17 00:00:00 2001 From: 16639036659 <577530412@qq.com> Date: 星期四, 25 四月 2024 15:03:42 +0800 Subject: [PATCH] 饼图添加整改与未整改数据的统计结果 --- 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