huang
2025-10-31 1fed5e7bab3a8f6b9adbfcd3695e14a03d47677f
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
package com.mes.entity;
 
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 lombok.Data;
 
import java.io.Serializable;
 
/**
 * PLC地址映射配置表
 * 
 * @author huang
 * @date 2025/10/30
 */
@Data
@TableName("plc_address_mapping")
public class PlcAddress implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    /**
     * 项目标识
     */
    private String projectId;
    
    /**
     * 项目名称
     */
    private String projectName;
    
    /**
     * DB块地址
     */
    private String dbArea;
    
    /**
     * 起始索引
     */
    private int beginIndex;
    
    /**
     * PLC IP地址
     */
    private String plcIp;
    
    /**
     * PLC类型
     */
    private String plcType;
    
    /**
     * 地址映射配置(JSON格式存储)
     * key为字段名,value为地址偏移量
     */
    @TableField("address_mapping_json")
    private String addressMapping;
    
    /**
     * 是否启用(0-禁用,1-启用)
     */
    private int enabled;
    
    /**
     * 备注
     */
    @TableField("description")
    private String remarks;
}