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