peng
2026-03-18 e59a0201057ba67cad425fed804c82ff4ba0c6f1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
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;
    }
}