whycxzp
2021-10-12 d5cf76188ad37f062f37ebce3464097203b4db05
src/main/java/com/whyc/controller/BatteryDataController.java
@@ -12,6 +12,7 @@
/**
 * 电池数据统计
 * TODO: 单体统计每日更新一次,从缓存中获取提高效率
 */
@RestController
@RequestMapping("batteryData")
@@ -33,5 +34,35 @@
        return service.getBatteryCap(userId);
    }
    @GetMapping("capStatus")
    @ApiOperation(value = "电池单体容量状态")
    public Response monCapStatus(@RequestParam Integer userId){
        return service.getMonCapStatus(userId);
    }
    @GetMapping("monVol")
    @ApiOperation(value = "单体电压统计")
    public Response getMonVol(@RequestParam Integer userId){
        return service.getMonVol(userId);
    }
    @GetMapping("monTemp")
    @ApiOperation(value = "单体温度统计")
    public Response getMonTemp(@RequestParam Integer userId){
        return service.getMonTemp(userId);
    }
    @GetMapping("monRes")
    @ApiOperation(value = "单体电阻统计")
    public Response getMonRes(@RequestParam Integer userId){
        return service.getMonRes(userId);
    }
    @GetMapping("monCap")
    @ApiOperation(value = "单体容量统计")
    public Response getMonCap(@RequestParam Integer userId){
        return service.getMonCap(userId);
    }
}