whycxzp
2025-03-31 0143867c6907619385752e14214f622e3cba1196
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
package com.whyc.pojo.db_abe_ram;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
 
import java.util.Date;
 
/**
 * 活化状态表
 * CREATE TABLE db_abe_ram.tb_abe_state(
 *     num bigint NOT NULL DEFAULT nextval('db_abe_ram.tb_abe_state_auto'::regclass),
 *     abe_id bigint NOT NULL DEFAULT 1,
 *     record_time timestamp without time zone NOT NULL DEFAULT '2000-01-01 00:00:00'::timestamp without time zone,
 *     now_mon_id integer NOT NULL DEFAULT 1,
 *     cnn_state integer NOT NULL DEFAULT 0,
 *     comm_errcount integer NOT NULL DEFAULT 0,
 *     comm_totalcount integer NOT NULL DEFAULT 0,
 *      PRIMARY KEY (num),
 *      CONSTRAINT idx_abe_id UNIQUE (    abe_id)
 * )
 *
 * ;
 *
 * ALTER    TABLE db_abe_ram.tb_abe_state
 *     OWNER TO sysdba;
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.num IS '自增主键';
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.abe_id IS 'ABE的id号';
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.record_time IS '更新下时间';
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.now_mon_id IS '当前接入单体编号';
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.cnn_state IS '连接状态(0-未连接  1-已连接)';
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.comm_errcount IS '通信错误计数';
 *
 * COMMENT ON COLUMN db_abe_ram.tb_abe_state.comm_totalcount IS '通信计数';
 *
 * COMMENT ON CONSTRAINT idx_abe_id ON db_abe_ram.tb_abe_state IS '设备ID';
 */
@TableName(schema = "db_abe_ram",value = "tb_abe_state")
@ToString
@Data
public class AbeState {
 
    @ApiModelProperty("自增主键")
    private Integer num;
    @ApiModelProperty("ABE的id号")
    private Integer abeId;
    @ApiModelProperty("更新下时间")
    private Date recordTime;
    @ApiModelProperty("当前接入单体编号")
    private Integer nowMonId;
    @ApiModelProperty("连接状态(0-未连接  1-已连接)")
    private Integer cnnState;
    @ApiModelProperty("通信错误计数")
    @TableField("comm_errcount")
    private Integer commErrCount;
    @ApiModelProperty("通信计数")
    @TableField("comm_totalcount")
    private Integer commTotalCount;
 
 
}