0918优化-综合查询显示曲线最大最小平均值和差值

This commit is contained in:
2025-10-16 17:01:35 +08:00
parent d0275e62e0
commit 4ad2cafc5d
8 changed files with 152 additions and 44 deletions

View File

@ -9,7 +9,9 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
@ -29,12 +31,15 @@ public class EmsGeneralQueryController extends BaseController{
@GetMapping("/getAllDeviceCategory")
public AjaxResult getDeviceCategory()
{
// 获取所有枚举的中文信息
List<String> deviceCategoryName = new ArrayList<>();
// 获取所有枚举的信息
List<Map<String, String>> deviceCategoryList = new ArrayList<>();
for (DeviceCategory category : DeviceCategory.values()) {
deviceCategoryName.add(category.getInfo());
Map<String, String> categoryMap = new HashMap<>();
categoryMap.put("name", category.getInfo());
categoryMap.put("code", category.getCode());
deviceCategoryList.add(categoryMap);
}
return success(deviceCategoryName);
return success(deviceCategoryList);
}
/**
@ -56,6 +61,7 @@ public class EmsGeneralQueryController extends BaseController{
try {
result = iGeneralQueryService.getPointValueList(request);
} catch (Exception e) {
logger.error("<UNK>",e);
return error("报错请重试!");
}
return success(result);

View File

@ -142,7 +142,7 @@ public class EmsSiteConfigController extends BaseController{
}
/**
* 单个站点单个设备点位查询
* 单个站点单个设备点位查询-点位清单
*/
@GetMapping("/getDevicePointList")
public TableDataInfo getDevicePointList(@Validated PointDataRequest request)