package com.ruoyi.doublePrevention.controller;
|
|
|
import com.ruoyi.doublePrevention.entity.dto.req.SPIDataCountReqDTO;
|
import com.ruoyi.doublePrevention.entity.dto.resp.SPIDataCountRespDTO;
|
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("/SPIDataCount")
|
public class SPIDataCountController {
|
|
@Autowired
|
private SPIDataCountService spiDataCountService;
|
|
/**
|
* @description 按年或者月统计隐患数量
|
*/
|
@PostMapping("/select/listDangerResultCountByMonthOrYear")
|
public ResultVO<SPIDataCountRespDTO> listDangerResultCountByMonthOrYear(@RequestBody SPIDataCountReqDTO spiDataCountReqDTO) {
|
return spiDataCountService.listDangerResultCountByMonthOrYear(spiDataCountReqDTO);
|
}
|
|
}
|