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 0f4dee0..f65392d 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 @@ -30,7 +30,7 @@ public class Index { public AjaxResult selzdb(@PathVariable(value = "modelId", required = false) Integer modelId) { // 查询总电表日常用电信息 if (null == psdcThermometerHtdataService.selTotalElectricityInfo(modelId)){ - return AjaxResult.success("今日暂无数据!"); + return AjaxResult.success("今日暂无数据!").put("data", null); } return AjaxResult.success(psdcThermometerHtdataService.selTotalElectricityInfo(modelId)); }