智慧水务管理系统 - 精河县供水工程综合管理平台

ISSUE_72_IMPLEMENTATION.md 1.8KB

Issue #72 实现说明:阈值管理 + 信息发布 + 设备管理

本文件说明 Issue #72 的实现位置。该 issue 的完整实现已存在于 master 的 wm-config 模块(早期审核通过的 24 文件,已合并入 master)。

需求与实现对应

#72 需求 实现位置(master / wm-config)
报警阈值编辑(含启用/禁用、变更历史) controller/ThresholdController + service/ThresholdService + entity/{ThresholdConfig,ThresholdChangeLog}
预报/预警信息发布(公告 CRUD、已读/类型筛选) controller/AnnouncementController + service/AnnouncementService + entity/Announcement
设备列表查询(按名称/类型/时间/位置)+ 维保 controller/DeviceManageController + service/DeviceManageService + entity/{DeviceInfo,DeviceMaintenance}

数据库(schema.sql)

用途
config_threshold 阈值配置(指标/级别/上下限/启用状态)
config_threshold_change_log 阈值变更历史
config_announcement 公告/预警信息发布
config_device_info 设备台账
config_device_maintenance 设备维保记录

测试

测试类 覆盖
ThresholdServiceTest 阈值 CRUD + 启用禁用 + 变更历史
AnnouncementServiceTest 公告发布/查询/已读
DeviceManageServiceTest 设备列表/维保

API(基路径 /api/config)

  • /threshold — 阈值分页/详情/创建/更新/删除/启用禁用/变更历史
  • /announcement — 公告发布/查询/已读
  • /device — 设备列表/详情/维保记录

技术栈

Spring Boot 3 + MyBatis-Plus(ServiceImpl/分页)+ PostgreSQL + wm-common 的 R<T> 统一响应 + Swagger 注解。