package com.tievd.jyz.entity;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import com.tievd.cube.codegen.annotations.QueryField;
|
import com.tievd.cube.codegen.annotations.QueryFields;
|
import com.tievd.cube.commons.annotations.Dict;
|
import com.tievd.cube.commons.easyexcel.annotations.Excel;
|
import com.tievd.jyz.constants.SystemConstant;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
import lombok.experimental.Accessors;
|
|
import java.io.Serializable;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 视频终端表
|
* </p>
|
*
|
* @author
|
* @since 2023-02-24
|
*/
|
@Data
|
@Accessors(chain = true)
|
@TableName("t_camera")
|
@Schema(name = "Camera", description = "视频终端表")
|
@QueryFields({@QueryField(value = "name", label = "摄像头名称"),
|
@QueryField(value = "factory", label = "厂家"),
|
@QueryField(value = "installAddress", label = "所属区域"),
|
@QueryField(value = "status", label = "状态"),
|
})
|
public class Camera extends Model<Camera> {
|
|
private static final long serialVersionUID = 1L;
|
|
@Schema(description = "主键")
|
@TableId(value = "id", type = IdType.ASSIGN_ID)
|
private Long id;
|
|
@Schema(description = "设备名称")
|
@TableField(value = "name", condition = SqlCondition.LIKE)
|
@Excel("设备名称")
|
private String name;
|
|
@Schema(description = "设备编码")
|
@TableField("code")
|
private String code;
|
|
@Schema(description = "设备厂家(见字典表) 天翼1 宇视 2 海康3 大华4")
|
@TableField("factory")
|
@Dict(SystemConstant.DICT_FACTORY)
|
@Excel("设备厂家")
|
private Byte factory;
|
|
@Schema(description = "摄像头类型 1网络摄像机")
|
@TableField("type")
|
private Byte type;
|
|
@Schema(description = "设备型号")
|
@TableField("model")
|
private String model;
|
|
@Schema(description = "IP地址")
|
@TableField("ip_address")
|
@Excel("IP地址")
|
private String ipAddress;
|
|
@Schema(description = "协议类型")
|
@TableField("butt_method")
|
@Dict(SystemConstant.BUTT_METHOD)
|
@Excel("协议类型")
|
private String buttMethod;
|
|
@Schema(description = "所属设备id")
|
@TableField("device_id")
|
@Excel("所属设备id")
|
private Long deviceId;
|
|
@Schema(description = "所属设备名称")
|
@TableField(exist = false)
|
private String deviceName;
|
|
@Schema(description = "所属机构")
|
@TableField(value = "org_code", condition = SqlCondition.LIKE_RIGHT)
|
@Excel("所属机构编码")
|
private String orgCode;
|
|
@Schema(description = "所属机构")
|
@TableField(exist = false)
|
private String orgName;
|
|
@Schema(description = "操作账号")
|
@TableField("operator")
|
private String operator;
|
|
@Schema(description = "设备状态 1:在线 2:离线")
|
@TableField("status")
|
@Dict(SystemConstant.DICT_ONLINE_STATUS)
|
private Byte status;
|
|
@Schema(description = "设备标签")
|
@TableField("label")
|
private String label;
|
|
@Schema(description = "安装位置 1卸油区 2加油区,3便利店,4入口, 5出口")
|
@TableField("install_address")
|
@Dict(SystemConstant.DICT_INSTALL_ADDRESS)
|
@Excel("安装区域")
|
private Byte installAddress;
|
|
@Schema(description = "取流地址")
|
@TableField("stream_address")
|
@Excel("取流地址")
|
private String streamAddress;
|
|
@Schema(description = "创建时间")
|
@TableField("create_time")
|
private Date createTime;
|
|
@Schema(description = "用户名")
|
@TableField("user_name")
|
@Excel("用户名")
|
private String userName;
|
|
@Schema(description = "密码")
|
@TableField("password")
|
@Excel("密码")
|
private String password;
|
|
@Schema(description = "更新时间")
|
@TableField("update_time")
|
private Date updateTime;
|
|
@Override
|
public Serializable pkVal() {
|
return this.id;
|
}
|
}
|