2023-05-23 10:09:36 优化完善首页大屏运行设备查询接口!

master
魔神煜修罗皇 2 years ago
parent 65b4b11696
commit 9c454de070
  1. 8
      psdc-web/src/main/java/com/psdc/controller/index/Index.java

@ -26,13 +26,13 @@ public class Index {
return psdcThermometerHtdataService.sel8WnDu(modelId); return psdcThermometerHtdataService.sel8WnDu(modelId);
} }
@RequestMapping(value = "/zdb", method = RequestMethod.GET) @RequestMapping(value = "/zdb/{modelId}", method = RequestMethod.GET)
public AjaxResult selzdb() { 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("今日暂无数据!");
} }
return AjaxResult.success(psdcThermometerHtdataService.selTotalElectricityInfo(13)); return AjaxResult.success(psdcThermometerHtdataService.selTotalElectricityInfo(modelId));
} }
} }

Loading…
Cancel
Save