From 5ea8ef80312e8c1d3365abe7106622d676def195 Mon Sep 17 00:00:00 2001
From: huangzhen <867127663@qq.com>
Date: 星期五, 30 九月 2022 16:41:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/main/java/com/ruoyi/doublePrevention/controller/SPIDataCountController.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataCountController.java b/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataCountController.java
new file mode 100644
index 0000000..417032e
--- /dev/null
+++ b/src/main/java/com/ruoyi/doublePrevention/controller/SPIDataCountController.java
@@ -0,0 +1,29 @@
+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);
+    }
+
+}

--
Gitblit v1.9.2