feat(ops): 新增 OpsRedisKeyBuilder 统一管理 Redis Key 租户隔离
新建 OpsRedisKeyBuilder 集中式工具类,所有 Ops 模块 Redis Key 统一使用
:t{tenantId} 格式实现多租户隔离。迁移以下服务的 Key 构建:
- RedisOrderQueueServiceImpl(派单队列/信息/锁)
- UserDispatchStatusServiceImpl(调度状态)
- BadgeDeviceStatusServiceImpl(工牌状态)
- TrafficActiveOrderRedisDAO(客流活跃工单)
- TtsQueueConsumer(TTS 队列/锁/循环)
- OrderCodeGenerator(工单编码序号)
- AreaDeviceServiceImpl(区域设备配置缓存)
- TrafficStatisticsPersistJob(持久化锁)
- BadgeDeviceStatusRedisDAO(IoT 侧工牌状态)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@ import lombok.NoArgsConstructor;
|
||||
/**
|
||||
* 人员调度状态 DTO
|
||||
* <p>
|
||||
* 对应 Redis Hash: ops:user:dispatch:{userId}
|
||||
* 对应 Redis Hash: ops:user:dispatch:t{tenantId}:{userId}
|
||||
* <p>
|
||||
* 适用于安保、工程、客服等人员维度的业务线。
|
||||
* 保洁使用设备维度的 {@code BadgeDeviceStatusDTO}。
|
||||
|
||||
Reference in New Issue
Block a user