vince
2023-09-04 e241acb82959328535d8f903902863bd420df139
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
package com.ld.igds.protocol.zldz.analysis.message;
 
 
import lombok.Data;
 
import java.util.Date;
 
/**
 * 消息头对象
 * 
 * @author Andy
 *
 */
@Data
public class ReMessage {
 
    private String ip;
 
    private int port;
 
    private String begin;
 
    private String sourceId;// 源 ID
 
    private String targetId;// 目标ID
 
    private String sendId;//发送者ID
 
    private String gateway1;//路由1
 
    private String gateway2;//路由2
 
    private String messageType;// 消息类型
 
    private int result;// 处理结果
 
    private String companyId;// 组织编码
 
    private String hexCrc8;//crc8包头校验
 
    private ReMessageBody body;
 
    private String hexCrc16;//crc16校验
 
    private String end;
 
    private byte[] byteMsg;// 当前命令的字节信息
 
    private String strMsg;// 当前命令转换为字符串的信息
 
    private String batchId;
 
    private Date receiveDate;
 
    // 异常信息
    private String error;
 
    @Override
    public String toString() {
        return "ReMessage{" +
                "ip='" + ip + '\'' +
                ", port=" + port +
                ", sourceId='" + sourceId + '\'' +
                ", targetId='" + targetId + '\'' +
                ", sendId='" + sendId + '\'' +
                ", messageType='" + messageType + '\'' +
                ", result=" + result +
                ", companyId='" + companyId + '\'' +
                ", hexCrc8='" + hexCrc8 + '\'' +
                ", hexCrc16='" + hexCrc16 + '\'' +
                ", strMsg='" + strMsg + '\'' +
                '}';
    }
}