feat(wm-production): #10 修复 VideoMonitorController 编译错误 + 补齐 AI闯入检测(MON-07~09)
wm-production 模块 90% 实现已在 master(Dashboard/Gis/Monitor/Video 等),唯一阻塞点是 VideoMonitorController 编译失败:它调用 IntrusionDetectionService 的 10 个方法,但 Service 仅有 4 个且基于错误假设的实体字段(eventNo/detectedTime/confirmedBy/status(String) 等,IntrusionEvent 实体均无),导致整个 wm-production 模块编译失败。
本次重写 IntrusionDetectionService,对齐 IntrusionEvent 真实字段(cameraId/alertStatus/detectedAt/handleResult/handledBy 等),实现 VideoMonitorController 调用的全部 10 个方法:
- detectIntrusion(cameraId, frameData): 单路 AI 检测,命中生成事件
- batchDetect(cameraIds): 批量多路检测
- pageEvents(8维筛选): 分页查询闯入事件(按摄像头/区域/等级/状态/时间)
- getEventById / confirmEvent / handleEvent / dismissEvent: 事件详情与状态流转(待处理→已确认→已处理/已忽略)
- getIntrusionStats(period): 按 today/week/month 统计(总数/各状态/平均置信度/误报率)
- getIntrusionTrend(days): 按天趋势
- getTopIntrusionCameras(limit): 高频闯入摄像头排行
补充 IntrusionDetectionServiceTest(覆盖检测/查询/处理/统计/排行,15 用例)。
对齐 IntrusionEvent 真实字段,零编译风险(无 eventNo/detectedTime/confirmedBy 等不存在字段的调用)。符合设计文档 5.3。