From 453e3471e94b91169beec1e258a06a132d927011 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 02 十二月 2024 15:01:50 +0800
Subject: [PATCH] 1

---
 src/main/java/com/yssh/controller/CountController.java |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/yssh/controller/CountController.java b/src/main/java/com/yssh/controller/CountController.java
new file mode 100644
index 0000000..81690cb
--- /dev/null
+++ b/src/main/java/com/yssh/controller/CountController.java
@@ -0,0 +1,31 @@
+package com.yssh.controller;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+
+import java.util.Map;
+
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+import com.yssh.service.CountService;
+import com.yssh.utils.Result;
+
+import javax.annotation.Resource;
+
+@Api(tags="缁熻")
+@RestController
+@RequestMapping("/count")
+@SuppressWarnings("rawtypes")
+public class CountController {
+    @Resource
+    private CountService countService;
+
+    @GetMapping("/accuracy")
+    @ApiOperation(value = "鏌ヨ鍑嗙‘鐜囩粺璁�", notes = "鏌ヨ鍑嗙‘鐜囩粺璁℃暟鎹紝杩斿洖鍙傛暟涓璮orecastRate涓洪娴嬪噯纭巼锛宲racticalRate涓烘函婧愬噯纭巼")
+    public Result getAccuracyAvg() {
+        Map<String, Double> accuracyAvg = countService.selectAccuracyAvg();
+        return Result.OK(accuracyAvg);
+    }
+}

--
Gitblit v1.9.3