燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-07-14 db44f336e46825afc855466512065cc08e5790bd
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
30
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 = "查询准确率统计数据,返回参数中forecastRate为预测准确率,practicalRate为溯源准确率")
    public Result getAccuracyAvg() {
        Map<String, Double> accuracyAvg = countService.selectAccuracyAvg();
        return Result.OK(accuracyAvg);
    }
}