feat(ems): 添加位置坐标字段及区域功能

-树设备挂载 在 EmsLocation 实体及其相关 BO、VO 中新增 x、y 坐标字段
- 更新 Mapper XML 配置以支持新字段映射
- 新增 LocationTreeNodeVo 类用于表示区域树节点结构
- 在 EmsLocationController 中增加 /treeWithDevices 接口
- 在 EmsLocationServiceImpl 中实现 treeWithDevices 方法,
  构建带路径的区域树并在叶子节点挂载设备信息
- 注入 IEmsAlarmDeviceService 服务以查询设备数据
- 修改生产环境数据库端口号与密码配置
This commit is contained in:
2025-10-14 16:59:09 +08:00
parent d8175ef41d
commit 4a2e0c37f3
9 changed files with 119 additions and 2 deletions

View File

@@ -58,9 +58,9 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://140.143.206.120:3306/klp-oa?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
url: jdbc:mysql://140.143.206.120:13306/klp-oa?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true
username: klp
password: KeLunPu123@
password: KeLunPu@123
# 从库数据源
slave:
lazy: true