双重预防项目-国泰新华二开定制版
heheng
2025-06-24 e98eeaaa5766511fdb8e6d5e412eb1c59d1f07ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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<TroubleData> getSPIData(@RequestBody SPIDataReqBO spiDataReqBO) {
        return spiDataCountService.getSPIData(spiDataReqBO);
    }
 
    @PostMapping("/select/getSPIDataForPieChart")
    public ResultVO<TroubleLevel> getSPIDataForPieChart(@RequestBody SPIDataReqBO spiDataReqBO) {
        return spiDataCountService.getSPIDataForPieChart(spiDataReqBO);
    }
}