refactor(iot,ops): 重构客流计数器重置为按区域删除阈值 key

- ResetTrafficCounterReqDTO: 废弃 newBaseValue 字段
- IotDeviceControlApiImpl: 重置逻辑改为通过区域关联查询后删除阈值 key
- CleanOrderEventListener: 简化异步重置调用,移除 triggerData 依赖

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
lzh
2026-02-03 15:37:23 +08:00
parent 46024fd043
commit 13571faa59
3 changed files with 41 additions and 36 deletions

View File

@@ -25,8 +25,8 @@ public class ResetTrafficCounterReqDTO {
@NotNull(message = "设备ID不能为空")
private Long deviceId;
@Schema(description = "新的基准值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1500")
@NotNull(message = "基准值不能为空")
@Schema(description = "新的基准值(已废弃,无需传递)", example = "1500")
@Deprecated
private Long newBaseValue;
@Schema(description = "关联的工单ID用于日志追踪", example = "12345")