From 8a457c61e4079ee92864ea57abe92fc094050bc0 Mon Sep 17 00:00:00 2001 From: 换个名字嗨起来 <577530412@qq.com> Date: 星期四, 25 七月 2024 13:30:05 +0800 Subject: [PATCH] 关闭专项任务,调整数据上报频次 --- src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 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..102c3e8 100644 --- a/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java +++ b/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataController.java @@ -1,8 +1,7 @@ package com.ruoyi.doublePrevention.controller; -import com.ruoyi.doublePrevention.entity.SPI.SPIDataReqBO; -import com.ruoyi.doublePrevention.entity.SPI.SPIDataRespDTO; +import com.ruoyi.doublePrevention.entity.SPI.*; import com.ruoyi.doublePrevention.service.SPIDataCountService; import com.ruoyi.doublePrevention.vo.ResultVO; import org.springframework.beans.factory.annotation.Autowired; @@ -19,8 +18,12 @@ private SPIDataCountService spiDataCountService; @PostMapping("/select/getSPIData") - public ResultVO<SPIDataRespDTO> getSPIData(@RequestBody SPIDataReqBO spiDataReqBO) { + public ResultVO<TroubleData> getSPIData(@RequestBody SPIDataReqBO spiDataReqBO) { return spiDataCountService.getSPIData(spiDataReqBO); } + @PostMapping("/select/getSPIDataForPieChart") + public ResultVO<TroubleLevel> getSPIDataForPieChart(@RequestBody SPIDataReqBO spiDataReqBO) { + return spiDataCountService.getSPIDataForPieChart(spiDataReqBO); + } } -- Gitblit v1.9.2