| | |
| | | import com.whyc.dto.paramter.GroupTestCapPar; |
| | | import com.whyc.pojo.Battinf; |
| | | import com.whyc.service.BatttestdataInfService; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @PostMapping("/searchBattLastHrDataById") |
| | | @ApiOperation(value = "最后一次核容放电数据") |
| | | public Response searchBattLastHrDataById(@RequestParam int battGroupId, @RequestParam int devId) { |
| | | return service.searchBattLastHrDataById(battGroupId, devId); |
| | | String lang = ActionUtil.getLang(); |
| | | return service.searchBattLastHrDataById(battGroupId, devId, lang); |
| | | } |
| | | |
| | | @PostMapping("/searchBattLife") |
| | |
| | | return service.searchGroupTestCap(groupCapPar); |
| | | } |
| | | |
| | | |
| | | @GetMapping("getHrYeardisBatt") |
| | | @ApiOperation(value = "获取本年已核容放电电池组") |
| | | public Response getHrYeardisBatt() { |
| | | return service.getHrYeardisBatt(); |
| | | } |
| | | |
| | | @GetMapping("getJcdisBatt") |
| | | @ApiOperation(value = "获取实时停电放电机房") |
| | | public Response getJcdisBatt() { |
| | | return service.getJcdisBatt(); |
| | | } |
| | | |
| | | @GetMapping("getHrYeardisBattInfo") |
| | | @ApiOperation(value = "获取本年已核容放电电池组最新一次数据详情") |
| | | public Response getHrYeardisBattInfo() { |
| | | return service.getHrYeardisBattInfo(); |
| | | } |
| | | } |