whyclxw
2022-01-10 b2cf9137eb6eb09bebf867e3c4c23c818bcf103e
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
32
33
34
35
36
37
package com.whyc.controller;
 
import com.whyc.dto.BattState;
import com.whyc.dto.Response;
import com.whyc.pojo.Battinf;
import com.whyc.service.BatttestdataInfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * 电池续航能力历史查询
 */
@RequestMapping("Batttestdata_infAction")
@RestController
@Api(tags = "在线监测-历史监控")
public class BatttestdataInfController {
 
    @Resource
    private BatttestdataInfService service;
 
 
    @PostMapping("/searchBattTestInfDataById")
    @ApiOperation(value = "获取充放电记录")
    public Response searchBattTestInfDataById(@RequestParam int battGroupId) {
        return service.searchBattTestInfDataById(battGroupId);
    }
 
    @PostMapping("/searchBattLastHrDataById")
    @ApiOperation(value = "最后一次核容放电数据")
    public Response searchBattLastHrDataById(@RequestParam int battGroupId) {
        return service.searchBattLastHrDataById(battGroupId);
    }
}