whyczh
2021-12-27 b7605191cf3b4502c20efdefd9af65954cfa8a1c
src/main/java/com/whyc/controller/BatttestdataInfController.java
@@ -6,10 +6,7 @@
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 org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@@ -17,26 +14,24 @@
/**
 * 电池续航能力历史查询
 */
@RequestMapping("BatttestdataInf")
@RequestMapping("Batttestdata_infAction")
@RestController
@Api(tags = "报表统计")
@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;
    @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);
    }
}