From 8dd6db3f6fd9d92ba8c26dbd91f8764f4623e3e0 Mon Sep 17 00:00:00 2001 From: whyclxw <810412026@qq.com> Date: 星期五, 06 六月 2025 17:23:05 +0800 Subject: [PATCH] 历史实时测试数据 --- src/main/java/com/whyc/controller/RealContoller.java | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/whyc/controller/RealContoller.java b/src/main/java/com/whyc/controller/RealContoller.java index b2e43f3..356358e 100644 --- a/src/main/java/com/whyc/controller/RealContoller.java +++ b/src/main/java/com/whyc/controller/RealContoller.java @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; +import java.text.ParseException; + @RestController @Api(tags = "瀹炴椂椤甸潰") @RequestMapping("real") @@ -52,10 +54,18 @@ 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); + } } \ No newline at end of file -- Gitblit v1.9.1