From 9c454de0709e9b26993172f0bd8a0e05beb025d7 Mon Sep 17 00:00:00 2001 From: XMnhwj_BackTechnologyDevelopment <3512363680@qq.com> Date: Tue, 23 May 2023 10:09:26 +0800 Subject: [PATCH] =?UTF-8?q?2023-05-23=2010:09:36=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A6=96=E9=A1=B5=E5=A4=A7=E5=B1=8F=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E8=AE=BE=E5=A4=87=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/psdc/controller/index/Index.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/psdc-web/src/main/java/com/psdc/controller/index/Index.java b/psdc-web/src/main/java/com/psdc/controller/index/Index.java index 97a7502..0f4dee0 100644 --- a/psdc-web/src/main/java/com/psdc/controller/index/Index.java +++ b/psdc-web/src/main/java/com/psdc/controller/index/Index.java @@ -26,13 +26,13 @@ public class Index { return psdcThermometerHtdataService.sel8WnDu(modelId); } - @RequestMapping(value = "/zdb", method = RequestMethod.GET) - public AjaxResult selzdb() { + @RequestMapping(value = "/zdb/{modelId}", method = RequestMethod.GET) + public AjaxResult selzdb(@PathVariable(value = "modelId", required = false) Integer modelId) { // 查询总电表日常用电信息 - if (null == psdcThermometerHtdataService.selTotalElectricityInfo(13)){ + if (null == psdcThermometerHtdataService.selTotalElectricityInfo(modelId)){ return AjaxResult.success("今日暂无数据!"); } - return AjaxResult.success(psdcThermometerHtdataService.selTotalElectricityInfo(13)); + return AjaxResult.success(psdcThermometerHtdataService.selTotalElectricityInfo(modelId)); } }