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;
|
}
|
|
}
|