yangys
2024-02-07 a9816afaf13115c2119fd607ce505b72452f64a9
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
package com.qianwen.mdc.dto;
 
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
 
/**
 * 机床状态分布图查询参数
 */
public class NcDistributeQueryDTO {
    private static DateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    /**
     * 车间id
     */
    private Long workshopId;
    /**
     * 工段id
     */
    private Long sectionId;
    /**
     * 机床id
     */
    private List<Integer> machineIds;
    
    /**
     * 查询开始时间
     */
    private Date timeBegin;
    
    /**
     * 查询结束时间
     */
    private Date timeEnd;
    
    
 
    public Long getWorkshopId() {
        return workshopId;
    }
 
    public void setWorkshopId(Long workshopId) {
        this.workshopId = workshopId;
    }
 
    public Long getSectionId() {
        return sectionId;
    }
 
    public void setSectionId(Long sectionId) {
        this.sectionId = sectionId;
    }
 
 
    public List<Integer> getMachineIds() {
        return machineIds;
    }
 
    public void setMachineIds(List<Integer> machineIds) {
        this.machineIds = machineIds;
    }
 
    public Date getTimeBegin() {
        return timeBegin;
    }
 
    public void setTimeBegin(Date timeBegin) {
        this.timeBegin = timeBegin;
    }
 
    public Date getTimeEnd() {
        return timeEnd;
    }
 
    public void setTimeEnd(Date timeEnd) {
        this.timeEnd = timeEnd;
    }
    
    public long startTime() {
     
        long istartTime = 0;
        if(timeBegin!= null) {
            istartTime = timeBegin.getTime()/1000;
        }
        
        return istartTime;
    }
    
    public long endTime() {
        
        long iendTime = 0;
        if(timeEnd!= null) {
            iendTime = timeEnd.getTime()/1000;
        }
        
        return iendTime;
    }
}