| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.text.ParseException; |
| | | |
| | | @RestController |
| | | @Api(tags = "实时页面") |
| | | @RequestMapping("real") |
| | |
| | | public Response getBattTinf(@RequestParam Integer battgroupId){ |
| | | return tinfService.getBattTinf(battgroupId); |
| | | } |
| | | |
| | | @ApiOperation(value = "历史测试记录具体某一次放电数据详情") |
| | | @GetMapping("getTinfDataWithTestRecordCount") |
| | | public Response getTinfDataWithTestRecordCount(@RequestParam Integer battgroupId,@RequestParam Integer testRecordCount |
| | | ,@RequestParam Integer recordNum,@RequestParam Integer granularity){ |
| | | return tdataIdService.getTinfDataWithTestRecordCount(battgroupId,testRecordCount,recordNum,granularity); |
| | | } |
| | | |
| | | @ApiOperation(value = "历史实时查询") |
| | | @GetMapping("getBattRealDataHis") |
| | | public Response getBattRealDataHis(@RequestParam Integer battgroupId,@RequestParam Integer granularity |
| | | ,@RequestParam String startTime,@RequestParam String endTime) throws ParseException, InterruptedException { |
| | | return battRealdataIdService.getBattRealDataHis(battgroupId,granularity,startTime,endTime); |
| | | } |
| | | } |