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 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 getMachineIds() { return machineIds; } public void setMachineIds(List 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; } }