0
0

分页查询围栏进出记录列表

This commit is contained in:
2025-09-22 15:58:00 +08:00
parent 5f36c25550
commit 9d642f4913
4 changed files with 110 additions and 22 deletions

View File

@ -8,7 +8,9 @@ import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
@ -25,19 +27,24 @@ public class DeviceFenceAccessRecordBo extends BaseEntity {
/**
* 记录ID
*/
@NotNull(message = "记录ID不能为空", groups = { EditGroup.class })
@NotNull(message = "记录ID不能为空", groups = {EditGroup.class})
private Long id;
/**
* 围栏ID
*/
@NotNull(message = "围栏ID不能为空", groups = { AddGroup.class, EditGroup.class })
@NotNull(message = "围栏ID不能为空", groups = {AddGroup.class, EditGroup.class})
private Long fenceId;
/**
* 围栏名称
*/
private String fenceName;
/**
* 设备标识
*/
@NotBlank(message = "设备标识不能为空", groups = { AddGroup.class, EditGroup.class })
@NotBlank(message = "设备标识不能为空", groups = {AddGroup.class, EditGroup.class})
private String deviceId;
/**
@ -48,19 +55,19 @@ public class DeviceFenceAccessRecordBo extends BaseEntity {
/**
* 事件类型
*/
@NotNull(message = "事件类型不能为空", groups = { AddGroup.class, EditGroup.class })
@NotNull(message = "事件类型不能为空", groups = {AddGroup.class, EditGroup.class})
private Long eventType;
/**
* 纬度
*/
@NotNull(message = "纬度不能为空", groups = { AddGroup.class, EditGroup.class })
@NotNull(message = "纬度不能为空", groups = {AddGroup.class, EditGroup.class})
private Double latitude;
/**
* 经度
*/
@NotNull(message = "经度不能为空", groups = { AddGroup.class, EditGroup.class })
@NotNull(message = "经度不能为空", groups = {AddGroup.class, EditGroup.class})
private Double longitude;
/**
@ -71,7 +78,7 @@ public class DeviceFenceAccessRecordBo extends BaseEntity {
/**
* 事件时间
*/
@NotNull(message = "事件时间不能为空", groups = { AddGroup.class, EditGroup.class })
@NotNull(message = "事件时间不能为空", groups = {AddGroup.class, EditGroup.class})
private Date eventTime;
/**