whyczh
2021-12-11 54d75150f5379d2b8e25644f9b7fb0438cc716b3
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
38
39
40
41
42
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.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * 电池续航能力历史查询
 */
@RequestMapping("BatttestdataInf")
@RestController
@Api(tags = "报表统计")
public class BatttestdataInfController {
 
    @Resource
    private BatttestdataInfService service;
 
    //电池组历史放电数据续航能力查询
    @PostMapping("/searchBattLife")
    @ApiOperation(notes = "TODO ", value = "电池续航能力历史查询/searchBattLife")
    public Response<List<BattState>> searchBattLife(@RequestBody Battinf binf) {
        Response<List<BattState>> res = new Response<>();
        if(binf.getBattGroupId() == 0){
//            res = service.serchBattLifeNow(binf);   //机房历史放电数据续航能力查询(实时) //TODO RZG
        }else if(binf.getBattGroupId() == 1){
//            res = service.serchBattLife(binf);      //电池组历史放电数据续航能力查询(历史)
        }
 
        return null;
    }
 
}