y_ys79
2024-01-05 e5840972b6b17ec03bfc1069a9cacfe0cef189c6
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
package com.qianwen.mdc.domain;
 
import java.io.Serializable;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
 
@TableName("machining_data_nc")
public class MachiningDataNc implements Serializable {
    /**
     * primary key
     */
    @TableId(type=IdType.AUTO)
    private Long id;
 
    /**
     * machine id,对应machine.id
     */
    //@Column(name = "machine_id")
    private Integer machineId;
 
    /**
     * start time
     */
    //@Column(name = "start_time")
    private Integer startTime;
 
    /**
     * end time
     */
    //@Column(name = "end_time")
    private Integer endTime;
 
    /**
     * machine state
     */
    private String state;
 
    private static final long serialVersionUID = 1L;
 
  
    public Long getId() {
        return id;
    }
 
   
    public void setId(Long id) {
        this.id = id;
    }
 
    public Integer getMachineId() {
        return machineId;
    }
 
    public void setMachineId(Integer machineId) {
        this.machineId = machineId;
    }
 
   
    public Integer getStartTime() {
        return startTime;
    }
 
    
    public void setStartTime(Integer startTime) {
        this.startTime = startTime;
    }
 
    
    public Integer getEndTime() {
        return endTime;
    }
 
    /**
     * 设置end time
     *
     * @param endTime end time
     */
    public void setEndTime(Integer endTime) {
        this.endTime = endTime;
    }
 
  
    public String getState() {
        return state;
    }
 
    public void setState(String state) {
        this.state = state;
    }
 
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", machineId=").append(machineId);
        sb.append(", startTime=").append(startTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", state=").append(state);
        sb.append("]");
        return sb.toString();
    }
 
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MachiningDataNc other = (MachiningDataNc) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMachineId() == null ? other.getMachineId() == null : this.getMachineId().equals(other.getMachineId()))
            && (this.getStartTime() == null ? other.getStartTime() == null : this.getStartTime().equals(other.getStartTime()))
            && (this.getEndTime() == null ? other.getEndTime() == null : this.getEndTime().equals(other.getEndTime()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()));
    }
 
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMachineId() == null) ? 0 : getMachineId().hashCode());
        result = prime * result + ((getStartTime() == null) ? 0 : getStartTime().hashCode());
        result = prime * result + ((getEndTime() == null) ? 0 : getEndTime().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        return result;
    }
}