168 lines
4.3 KiB
Java
168 lines
4.3 KiB
Java
package com.gunshi.project.xyt.model;
|
||
|
||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||
import com.baomidou.mybatisplus.annotation.IdType;
|
||
import com.baomidou.mybatisplus.annotation.TableField;
|
||
import com.baomidou.mybatisplus.annotation.TableId;
|
||
import com.baomidou.mybatisplus.annotation.TableName;
|
||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||
import io.swagger.v3.oas.annotations.media.Schema;
|
||
|
||
import java.io.Serializable;
|
||
import java.math.BigDecimal;
|
||
import java.util.Date;
|
||
|
||
import jakarta.validation.constraints.NotBlank;
|
||
import jakarta.validation.constraints.NotNull;
|
||
import jakarta.validation.constraints.Size;
|
||
import lombok.Data;
|
||
|
||
/**
|
||
* 视频点信息
|
||
*/
|
||
@Schema(description = "视频点信息")
|
||
@Data
|
||
@TableName(value = "dbo.ST_CAMERA_B")
|
||
public class StCameraB implements Serializable {
|
||
/**
|
||
* 视频点id
|
||
*/
|
||
@TableId(value = "CAM_ID", type = IdType.INPUT)
|
||
@Schema(description="视频点id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@JsonSerialize(using = ToStringSerializer.class)
|
||
private Long camId;
|
||
|
||
/**
|
||
* 视频点名称
|
||
*/
|
||
@TableField(value = "CAM_NM")
|
||
@Schema(description="视频点名称")
|
||
@NotBlank
|
||
@Size(max = 200)
|
||
private String camNm;
|
||
|
||
/**
|
||
* 监控点类型
|
||
*/
|
||
@TableField(value = "CAM_TYPE")
|
||
@Schema(description="监控点类型")
|
||
@NotNull
|
||
@JsonSerialize(using = ToStringSerializer.class)
|
||
private Long camType;
|
||
|
||
/**
|
||
* 通道号
|
||
*/
|
||
@TableField(value = "CAM_CH", updateStrategy= FieldStrategy.ALWAYS)
|
||
@Schema(description="通道号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
private Integer camCh;
|
||
|
||
/**
|
||
* 所在区域
|
||
*/
|
||
@TableField(value = "CAM_AR_ID")
|
||
@Schema(description="所在区域")
|
||
@NotNull
|
||
@JsonSerialize(using = ToStringSerializer.class)
|
||
private Long camArId;
|
||
|
||
/**
|
||
* 摄像头连接地址 IP和端口
|
||
*/
|
||
@TableField(value = "CAM_URL")
|
||
@Schema(description="摄像头连接地址 IP和端口")
|
||
@NotNull
|
||
@Size(max = 200)
|
||
private String camUrl;
|
||
|
||
/**
|
||
* 视频序列号
|
||
*/
|
||
@TableField(value = "CAM_SN")
|
||
@Schema(description="视频序列号")
|
||
@NotBlank
|
||
private String camSn;
|
||
|
||
/**
|
||
* 经度
|
||
*/
|
||
@TableField(value = "LGTD")
|
||
@Schema(description="经度")
|
||
@NotNull
|
||
private BigDecimal lgtd;
|
||
|
||
/**
|
||
* 纬度
|
||
*/
|
||
@TableField(value = "LTTD")
|
||
@Schema(description="纬度")
|
||
@NotNull
|
||
private BigDecimal lttd;
|
||
|
||
/**
|
||
* 备注
|
||
*/
|
||
@TableField(value = "COMMENTS", updateStrategy= FieldStrategy.ALWAYS)
|
||
@Schema(description="备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
@Size(max = 200)
|
||
private String comments;
|
||
|
||
/**
|
||
* 新建时间
|
||
*/
|
||
@TableField(value = "CREATE_TM")
|
||
@Schema(description="新建时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
private Date createTm;
|
||
|
||
/**
|
||
* 修改时间
|
||
*/
|
||
@TableField(value = "TM")
|
||
@Schema(description="修改时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||
private Date tm;
|
||
|
||
/**
|
||
* 状态 1:启用 0:禁用
|
||
*/
|
||
@TableField(value = "[STATUS]")
|
||
@Schema(description="状态 1:启用 0:禁用")
|
||
@NotNull
|
||
private Integer status;
|
||
|
||
/**
|
||
* 首页默认显示 1:显示 0:不显示
|
||
*/
|
||
@TableField(value = "DEFAULT_SHOW")
|
||
@Schema(description = "首页默认显示 1:显示 0:不显示")
|
||
@NotNull
|
||
private Integer defaultShow;
|
||
|
||
public static final String COL_CAM_ID = "CAM_ID";
|
||
|
||
public static final String COL_CAM_NM = "CAM_NM";
|
||
|
||
public static final String COL_CAM_TYPE = "CAM_TYPE";
|
||
|
||
public static final String COL_CAM_CH = "CAM_CH";
|
||
|
||
public static final String COL_CAM_AR_ID = "CAM_AR_ID";
|
||
|
||
public static final String COL_CAM_URL = "CAM_URL";
|
||
|
||
public static final String COL_CAM_SN = "CAM_SN";
|
||
|
||
public static final String COL_LGTD = "LGTD";
|
||
|
||
public static final String COL_LTTD = "LTTD";
|
||
|
||
public static final String COL_COMMENTS = "COMMENTS";
|
||
|
||
public static final String COL_CREATE_TM = "CREATE_TM";
|
||
|
||
public static final String COL_TM = "TM";
|
||
|
||
public static final String COL_STATUS = "STATUS";
|
||
|
||
public static final String COL_DEFAULT_SHOW = "DEFAULT_SHOW";
|
||
} |