feat(ops): timeline 接口 deviceId 改为可选,支持全设备查询
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

不传 deviceId 时查询该日期所有设备的轨迹记录,复用
selectByDateAndDevice 的 LIMIT 5000 安全上限。

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
lzh
2026-04-05 15:27:05 +08:00
parent 54f78f8066
commit b379fc6741

View File

@@ -16,8 +16,7 @@ import java.time.LocalDate;
@Data
public class TrajectoryTimelineReqDTO {
@Schema(description = "设备ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31")
@NotNull(message = "设备ID不能为空")
@Schema(description = "设备ID(不传=全部设备)", example = "31")
private Long deviceId;
@Schema(description = "查询日期", requiredMode = Schema.RequiredMode.REQUIRED, example = "2026-03-30")