feat(scada): 添加组态中心功能并修复设备数据类型处理

- 新增 ScadaPictureController 控制器实现组态中心管理功能
- 实现组态页面的增删改查、设备绑定、物模型数据展示等功能
- 添加组态数据导入导出、图库收藏、历史数据查询等特性
- 在 DeviceServiceImpl 中增加数据类型为空时的保护性返回逻辑
- 实现设备运行状态获取和系统统计信息展示功能
- 集成 Swagger API 文档和权限控制注解

Signed-off-by: Gjm <你的邮箱>
This commit is contained in:
Gjm
2026-04-08 16:16:11 +08:00
parent 55a9d49a34
commit 608da912ea
2 changed files with 493 additions and 0 deletions

View File

@@ -879,6 +879,9 @@ public class DeviceServiceImpl implements IDeviceService {
return dataType;
}
dataType.setType(datatypeJson.getString("type"));
if (dataType.getType() == null) {
return dataType;
}
if (dataType.getType().equals("decimal")) {
dataType.setMax(datatypeJson.getBigDecimal("max"));
dataType.setMin(datatypeJson.getBigDecimal("min"));