jiazx0107@163.com
2023-05-30 2495e9ab75e6c45af1d6e14414711d8cc79fe2ca
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
141
142
143
144
145
146
147
148
149
package com.ld.igds.models;
 
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
 
import javax.persistence.*;
import java.io.Serializable;
 
/**
 * 出入库配置信息,配置规则同一个分库下支持配置多套出入库信息。根据SORT字段区分
 *
 * @author
 */
@Data
@Entity
@Table(name = "D_INOUT_CONF")
public class InoutConf implements Serializable {
 
    /**
     *
     */
    private static final long serialVersionUID = 1L;
 
    @Id
    @Column(name = "ID_", length = 40)
    @PropertyDef(label = "主键")
    private String id;
 
    @Column(name = "COMPANY_ID_", length = 10)
    @PropertyDef(label = "组织编码")
    private String companyId;
 
    @Column(name = "DEPT_ID_", length = 40)
    @PropertyDef(label = "所属库区")
    private String deptId;
 
    @Column(name = "SORT_", length = 2)
    @PropertyDef(label = "出入库配套序号")
    private String sort = "1";
 
    @Column(name = "IN_ORDER_")
    @PropertyDef(label = "设备顺序")
    private int inOrder = 1;
 
    @Column(name = "INTOU_PROGRESS_", length = 20)
    @PropertyDef(label = "所属流程")
    private String inoutProgress;
 
    @Column(name = "NAME_", length = 30)
    @PropertyDef(label = "设备名称")
    private String name;
 
    @Column(name = "SN_", length = 46)
    @PropertyDef(label = "设备序列号")
    private String sn;
 
    @Column(name = "IP_", length = 20)
    @PropertyDef(label = "分机IP")
    private String ip;
 
    @Column(name = "PORT_")
    @PropertyDef(label = "分机端口")
    private Integer port;
 
    @Column(name = "LOGIN_ID_", length = 20)
    @PropertyDef(label = "帐号")
    private String loginId;
 
    @Column(name = "PWD_", length = 20)
    @PropertyDef(label = "密码")
    private String pwd;
 
    @Column(name = "CHAN_NUM_")
    @PropertyDef(label = "通道号")
    private int chanNum = 1;
 
    @Column(name = "PORT_CTRL_")
    @PropertyDef(label = "控制端口")
    private Integer portCtrl;
 
//    @Column(name = "PORT_WEB_")
//    @PropertyDef(label = "WEB端口")
//    private Integer portWeb;
 
    @Column(name = "TYPE_", length = 10)
    @PropertyDef(label = "设备类型")
    private String type;
 
    @Column(name = "STATUS_", length = 10)
    @PropertyDef(label = "是否在线")
    private String status;
 
    @Column(name = "PROTOCOL_", length = 40)
    @PropertyDef(label = "协议", description = "不同厂商有不同的协议")
    private String protocol;
 
    @Column(name = "PLAY_TYPE_", length = 25)
    @PropertyDef(label = "播放方式")
    private String playType;
 
    @Column(name = "SNAP_TYPE_", length = 25)
    @PropertyDef(label = "抓拍方式")
    private String snapType;
 
    @Column(name = "MEDIA_ADDR_", length = 100)
    @PropertyDef(label = "本地播放地址")
    private String mediaAddr;
 
    @Column(name = "REMARK_", length = 100)
    @PropertyDef(label = "备注")
    private String remark;
 
    @Transient
    @PropertyDef(label = "异常信息")
    private String errorMsg;
 
    public InoutConf() {
        super();
    }
 
    public InoutConf(InoutConf conf) {
        this.id = conf.getId();
        this.companyId = conf.getCompanyId();
        this.deptId = conf.getDeptId();
        this.sort = conf.getSort();
        this.inOrder = conf.getInOrder();
        this.inoutProgress = conf.getInoutProgress();
        this.name = conf.getName();
        this.sn = conf.getSn();
        this.ip = conf.getIp();
        this.port = conf.getPort();
        this.loginId = conf.getLoginId();
        this.pwd = conf.getPwd();
        this.chanNum = conf.getChanNum();
        this.portCtrl = conf.getPortCtrl();
        this.type = conf.getType();
        this.status = conf.getStatus();
        this.protocol = conf.getProtocol();
        this.playType = conf.getPlayType();
        this.snapType = conf.getSnapType();
        this.mediaAddr = conf.getMediaAddr();
        this.remark = conf.getRemark();
        this.errorMsg = conf.getErrorMsg();
    }
 
    public InoutConf(String sort) {
        this.sort = sort;
    }
}