forked from dyf/fys-Multi-tenant
分页查询围栏进出记录列表
This commit is contained in:
@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user