¶Ô±ÈÐÂÎļþ |
| | |
| | | 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); |
| | | } |
| | | } |