feat(ops): 扩展调度上下文支持设备ID字段

新增 assigneeDeviceId 字段,用于同时记录人和设备的场景。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-01-23 13:47:13 +08:00
parent fffada3761
commit a36ed90c3f

View File

@@ -57,9 +57,20 @@ public class OrderDispatchContext {
* 推荐的执行人ID
* <p>
* 由分配策略推荐后填充
* <p>
* 对于 BADGE 业务类型此字段存储设备ID
*/
private Long recommendedAssigneeId;
/**
* 分配的设备ID冗余字段
* <p>
* 记录分配给工单的设备ID与 recommendedAssigneeId 分离
* <p>
* 用于同时记录人和设备的场景,或者需要明确区分设备维度的场景
*/
private Long assigneeDeviceId;
/**
* 执行人当前状态
* <p>