package com.ruoyi.doublePrevention.controller; 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; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("/SPIData") public class SPIDataController { @Autowired private SPIDataCountService spiDataCountService; @PostMapping("/select/getSPIData") public ResultVO getSPIData(@RequestBody SPIDataReqBO spiDataReqBO) { return spiDataCountService.getSPIData(spiDataReqBO); } @PostMapping("/select/getSPIDataForPieChart") public ResultVO getSPIDataForPieChart(@RequestBody SPIDataReqBO spiDataReqBO) { return spiDataCountService.getSPIDataForPieChart(spiDataReqBO); } }