燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2024-11-13 2f55cebbad3dea187a5f91d16ec80a9677dab699
src/main/java/com/yssh/controller/CountController.java
@@ -5,27 +5,27 @@
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
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.ICountService;
import com.yssh.service.CountService;
import com.yssh.utils.Result;
import javax.annotation.Resource;
@Api(tags="统计")
@RestController
@RequestMapping("/count")
@SuppressWarnings("rawtypes")
public class CountController {
   @Autowired
   private ICountService countService;
    @Resource
    private CountService countService;
   @GetMapping("/accuracy")
    @GetMapping("/accuracy")
    @ApiOperation(value = "查询准确率统计", notes = "查询准确率统计数据,返回参数中forecastRate为预测准确率,practicalRate为溯源准确率")
    public Result getAccuracyAvg(){
      Map<String, Double> accuracyAvg = countService.selectAccuracyAvg();
    public Result getAccuracyAvg() {
        Map<String, Double> accuracyAvg = countService.selectAccuracyAvg();
        return Result.OK(accuracyAvg);
    }
}