Commit Graph

79 Commits

Author SHA1 Message Date
lzh
06ca3070cd feat(iot): 支持按区域和设备类型查询配置
新增 getConfigByAreaIdAndRelationType 方法,用于跨设备获取配置场景。
例如:工牌设备需要获取该区域的信标配置。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 13:46:49 +08:00
lzh
177350830a refactor(ops): 优化语音播报服务封装
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
1. VoiceBroadcastService 重构
   - 移除未使用的 volume 参数(JT808 协议不支持)
   - 添加 TTS 播报标志常量定义
   - 新增 broadcastNormal() 和 broadcastUrgent() 方法
   - 支持自定义播报标志

2. 更新调用方
   - CleanOrderConfirmEventHandler: 使用简化 API
   - CleanOrderAuditEventHandler: 使用简化 API

TTS 参数标准:
- identifier: "tts"
- tts_text: 播报文本内容
- tts_flag: 0x01=静默, 0x08=普通, 0x09=紧急

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-22 09:58:19 +08:00
lzh
842b40596d fix: 修复RocketMQ topic名称非法字符问题
RocketMQ topic 只允许 ^[%|a-zA-Z0-9_-]+$ 字符,不支持 `.`

IoT 模块 Topic 变更:
- integration.device.status → integration-device-status
- integration.device.property → integration-device-property
- integration.device.event → integration-device-event

Ops 模块 Topic 变更:
- ops.order.create → ops-order-create
- ops.order.arrive → ops-order-arrive
- ops.order.complete → ops-order-complete
- ops.order.audit → ops-order-audit
- ops.order.confirm → ops-order-confirm

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 22:35:22 +08:00
lzh
c4ef31bb98 refactor(ops): 保洁工单相关服务改用新业务日志框架
- CleanOrderAuditEventHandler 使用 @BusinessLog 注解
- CleanOrderConfirmEventHandler 使用 @BusinessLog 注解
- VoiceBroadcastService 使用新的日志记录方式

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 18:44:21 +08:00
lzh
457fc556e2 refactor(ops): 移除保洁工单清理日志相关代码
- 删除 OpsOrderCleanLogDO 实体类
- 删除 OpsOrderCleanLogMapper Mapper接口
- 统一使用新的业务日志框架

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 18:44:07 +08:00
lzh
5063fc8dd1 refactor(ops): 移除旧的publisher模式
- 删除 BusinessLogPublisher 接口
- 删除 DefaultBusinessLogPublisher 实现
- 改用 recorder 模式替代 publisher 模式

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 18:43:54 +08:00
lzh
a49994cc57 refactor(ops): 重构业务日志注解和切面
- 更新 BusinessLog 注解以支持新的事件日志模型
- 更新 BusinessLogAspect 切面使用 EventLogRecorder

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 18:43:39 +08:00
lzh
a82b59ac46 feat(ops): 新增业务日志枚举类
- 新增 EventDomain:事件领域枚举
- 新增 EventLevel:事件级别枚举

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 18:43:32 +08:00
lzh
c88dc3fc10 fix(ops): 修正工牌设备状态事件处理器配置
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
- 包名从 handler 改为 listener
- 使用 TransactionalEventListener 替代 EventListener
- 线程池名修正为 ops-task-executor
- 状态从 ASSIGNED 改为 PENDING
- 清理测试文件中的重复代码

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-21 18:05:39 +08:00
lzh
8590f3c044 test: 完善 OrderStateMachine 和 OpsOrderService 测试用例 2026-01-21 09:30:29 +08:00
lzh
22fad4ad31 test: add cleaning flow tests for OpsOrderService 2026-01-20 18:07:05 +08:00
lzh
c2bf98be5a test: add unit tests for OpsOrderService 2026-01-20 18:04:40 +08:00
lzh
e96773daf7 test: add unit tests for OrderStateMachine 2026-01-20 18:02:35 +08:00
lzh
50452bec00 refactor(ops): 更新 EventHandler 使用新的服务入口
更新各事件处理器以使用重构后的服务:
- CleanOrderEventListener: 使用 VoiceBroadcastService
- CleanOrderAuditEventHandler: 使用 VoiceBroadcastService
- CleanOrderConfirmEventHandler: 使用 VoiceBroadcastService
- BadgeDeviceStatusEventHandler: 更新 import 路径至 environment 模块

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 16:30:44 +08:00
lzh
0c91cbf75c refactor(ops): 重构语音播报服务为统一入口
- 删除 VoiceBroadcastDeduplicationService(去重服务)
- 新增 VoiceBroadcastService 作为 TTS 统一入口
  - broadcast(deviceId, text): 同步播报
  - broadcast(deviceId, text, volume): 带音量播报
  - broadcastAsync(): 异步播报
- 简化设计:接受 deviceId 参数,不实现复杂去重逻辑

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 16:29:16 +08:00
lzh
d82cc65625 refactor(ops): 新增 environment 模块的 BadgeDeviceStatusService
将 BadgeDeviceStatusService 迁移至 environment-biz 模块,并扩展 DTO:
- 新建 environment/service/badge/BadgeDeviceStatusService.java 接口
- 新建 environment/service/badge/BadgeDeviceStatusServiceImpl.java 实现
- BadgeDeviceStatusDTO 新增字段:
  - currentOrderStatus: 工单状态(DISPATCHED/ARRIVED/PAUSED)
  - beaconMac: 当前区域信标MAC地址

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 16:26:34 +08:00
lzh
6d4c2c60cf refactor(ops): 移除 ops-core 中的 BadgeDeviceStatusService
将 BadgeDeviceStatusService 从 ops-core 模块迁移至 environment 模块:
- 删除 ops-biz/core/badge/BadgeDeviceStatusService.java
- 删除 ops-biz/core/badge/BadgeDeviceStatusServiceImpl.java

该服务属于保洁业务特定逻辑,应放置在 environment-biz 模块中。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 16:16:06 +08:00
lzh
a83e827919 feat: add badge device status service 2026-01-20 11:27:37 +08:00
lzh
1bbbc55096 fix(ops): align TTS service identifier and logic with audit handler 2026-01-20 11:17:50 +08:00
lzh
1d8680c336 refactor(ops): extract constants and optimize status list in audit handler 2026-01-20 11:15:17 +08:00
lzh
d933bbf92c feat(ops): add CleanOrderConfirmEventHandler 2026-01-19 14:50:09 +08:00
lzh
48ab863fda refactor(ops): add JsonProperty annotation to triggerSource 2026-01-19 14:46:20 +08:00
lzh
eedef70581 feat(ops): add confirm event DTO and update audit DTO 2026-01-19 14:41:05 +08:00
lzh
a71a29f548 fix(ops): implement missing updateBadgeArea method 2026-01-19 14:41:00 +08:00
lzh
4f2036d145 fix(ops): 修复编译错误2refactor-order-operations 2026-01-19 13:59:37 +08:00
lzh
c448daed03 fix(ops): 修复编译错误refactor-order-operations 2026-01-19 13:38:53 +08:00
lzh
568d37a0be feat(ops): refactor-order-operations 2026-01-19 13:32:23 +08:00
lzh
5419a949d4 feat(ops): 工单创建发布事件(事件驱动调度) & 工单完成自动下一个任务 2026-01-19 10:56:30 +08:00
lzh
64928f5a3f feat(ops): add-iot-clean-order-integration阶段3-客流计数器重置 2026-01-17 17:44:30 +08:00
lzh
82966dc61b feat(ops): add-iot-clean-order-integration阶段三-业务执行与审计 2026-01-17 17:20:35 +08:00
lzh
683b99be21 fix: 删除同名OpsOrderQueueMapper
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
2026-01-15 16:37:34 +08:00
lzh
c8010e06d2 feat(ops): add deployment configuration and actuator dependency
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
2026-01-15 16:30:15 +08:00
lzh
4a8c4d744c feat(ops): 增强工单队列服务并新增 RPC 配置 2026-01-15 16:14:32 +08:00
lzh
cd8d38149c chore: 【ops】语音播报去重简易实现 2026-01-09 17:42:46 +08:00
lzh
6be3e5b0e5 chore: 【ops】基础工单单元测试 2026-01-09 17:42:24 +08:00
lzh
47cbf6f1cc chore: 【ops】状态机配置 2026-01-09 17:42:08 +08:00
lzh
baa8d6e60c chore: 【ops】队列同步JOB 2026-01-09 17:41:49 +08:00
lzh
75a9df9f9f chore: 【ops】异步任务配置 2026-01-09 17:41:37 +08:00
lzh
2792226c95 chore: 【ops】保洁与IOT对接设备消费MQ消息 2026-01-09 17:41:14 +08:00
lzh
f26bd15f5b chore: 【ops】保洁员状态管理 2026-01-09 17:39:54 +08:00
lzh
628d8fd8c4 chore: 【ops】保洁员业务领域调整 2026-01-09 17:39:34 +08:00
lzh
9dd2dd35f1 chore: 【ops】实体调整 2026-01-09 17:39:14 +08:00
lzh
ea3c7829e9 chore: 【ops】工单业务日志注解 2026-01-09 17:38:29 +08:00
lzh
5974c767d5 chore: 【ops】工单基础操作修改 2026-01-09 17:38:01 +08:00
lzh
6ae2a9c750 chore: 【ops】保洁工单service修改 2026-01-09 17:36:17 +08:00
lzh
4a2801e97c chore: 【ops】保洁调度实现 2026-01-09 17:35:54 +08:00
lzh
23830961c8 chore: 【ops】保洁相关Mapper迁移 2026-01-09 16:50:51 +08:00
lzh
17a1f779a5 chore: 【ops】保洁相关Mapper迁移 2026-01-09 16:50:39 +08:00
lzh
51997af20c chore: 【ops】保洁工单生命周期监听器 2026-01-09 16:47:03 +08:00
lzh
08af90e732 chore: 【ops】工单生命周期管理器重新调整 2026-01-09 16:46:16 +08:00