双重预防项目-国泰新华二开定制版
16639036659
2024-06-13 c30de75894c259ee6bc6b60b21c8e40a5eea222e
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);
    }
}