严智鑫
2025-11-13 945bc394f40d8af1072a53da9a94f24207124e6d
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
package com.northglass.entity;
 
import java.util.Date;
 
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
 
@Entity
@Table(name="gmms_report_task")
public class ReportTask extends IdEntity{
    private String opt_name;
    private int piece;
    private int complete_piece;
    private String state;
    private Date start_time;
    private Date complete_time;
    private String reson;
    private Double area;
    private LoadMachine loadMachine;
    private OptPattern optPattern;
    
    public int getPiece() {
        return piece;
    }
    public void setPiece(int piece) {
        this.piece = piece;
    }
    public int getComplete_piece() {
        return complete_piece;
    }
    public void setComplete_piece(int complete_piece) {
        this.complete_piece = complete_piece;
    }
    public String getState() {
        return state;
    }
    public void setState(String state) {
        this.state = state;
    }
    public String getReson() {
        return reson;
    }
    public void setReson(String reson) {
        this.reson = reson;
    }
    
    public String getOpt_name() {
        return opt_name;
    }
    public void setOpt_name(String opt_name) {
        this.opt_name = opt_name;
    }
    
    public Date getStart_time() {
        return start_time;
    }
    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }
    public Date getComplete_time() {
        return complete_time;
    }
    public void setComplete_time(Date complete_time) {
        this.complete_time = complete_time;
    }
    public Double getArea() {
        return area;
    }
    public void setArea(Double area) {
        this.area = area;
    }
    @ManyToOne
    @JoinColumn(name="load_machine_id")
    public LoadMachine getLoadMachine() {
        return loadMachine;
    }
    public void setLoadMachine(LoadMachine loadMachine) {
        this.loadMachine = loadMachine;
    }
    
    @ManyToOne
    @JoinColumn(name="opt_pattern_id")
    public OptPattern getOptPattern() {
        return optPattern;
    }
    public void setOptPattern(OptPattern optPattern) {
        this.optPattern = optPattern;
    }
    
    
    
    public ReportTask() {
        super();
    }
    
    public ReportTask(String opt_name, int piece, String state, Date start_time, Date complete_time, String reson,
            LoadMachine loadMachine, OptPattern optPattern,double area) {
        super();
        this.opt_name = opt_name;
        this.piece = piece;
        this.state = state;
        this.start_time = start_time;
        this.complete_time = complete_time;
        this.reson = reson;
        this.loadMachine = loadMachine;
        this.optPattern = optPattern;
        this.area = area;
    }
    public ReportTask(String opt_name, int piece, int complete_piece, String state, Date start_time,  Date complete_time, String reson,
            LoadMachine loadMachine, OptPattern optPattern,double area) {
        super();
        this.opt_name = opt_name;
        this.piece = piece;
        this.complete_piece = complete_piece;
        this.state = state;
        this.start_time = start_time;
        this.complete_time = complete_time;
        this.reson = reson;
        this.loadMachine = loadMachine;
        this.optPattern = optPattern;
        this.area = area;
    }
    @Override
    public String toString() {
        return "ReportTask [opt_name=" + opt_name + ", piece=" + piece + ", complete_piece=" + complete_piece
                + ", state=" + state + ", complete_time=" + complete_time + ", reson=" + reson + ", loadMachine="
                + loadMachine + ", optPattern=" + optPattern + "]";
    }
    
    
}