package com.jcdm.main.da.passingStationCollection.domain; import java.util.Date; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.ExcelProperty; import com.alibaba.excel.annotation.write.style.ColumnWidth; import com.alibaba.excel.annotation.write.style.HeadFontStyle; import com.alibaba.excel.annotation.write.style.HeadRowHeight; import com.baomidou.mybatisplus.annotation.TableField; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import com.jcdm.common.annotation.Excel; import com.jcdm.common.core.domain.BaseEntity; import org.springframework.format.annotation.DateTimeFormat; /** * 产品过站采集对象 da_passing_station_collection * * @author yyt * @date 2023-12-12 */ @Data @ExcelIgnoreUnannotated @ColumnWidth(16) @HeadRowHeight(14) @HeadFontStyle(fontHeightInPoints = 11) public class DaPassingStationCollection extends BaseEntity { private static final long serialVersionUID = 1L; /** 主键id */ private Long id; /** 工单编号 */ @Excel(name = "工单编号") @ExcelProperty(value = "工单编号", index = 0) private String workOrderNo; /** 总成序列号 */ @Excel(name = "箱体编码") @ExcelProperty(value = "箱体编码", index = 1) private String sfcCode; /** 产品编号 */ @Excel(name = "产品编号") @ExcelProperty(value = "产品编号", index = 2) private String productCode; /** 产线编号 */ @Excel(name = "产线编号") @ExcelProperty(value = "产线编号", index = 3) private String productionLine; /** 工位编号 */ @Excel(name = "工位编号") @ExcelProperty(value = "工位编号", index = 4) private String locationCode; /** 设备编号 */ @Excel(name = "设备编号") private String equipmentNo; /** 入站时间 */ // @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "入站时间") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ExcelProperty(value = "入站时间", index = 5) private Date inboundTime; /** 出站时间 */ // @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "出站时间") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ExcelProperty(value = "出站时间", index = 6) private Date outboundTime; @TableField(exist = false) private String startTime; @TableField(exist = false) private String endTime; /** 入站是否合格 */ @Excel(name = "入站是否合格") private String inRsSign; /** 入站NG原因 */ @Excel(name = "入站NG原因") private String inMsgSign; /** 出站是否合格 */ @Excel(name = "出站是否合格") @ExcelProperty(value = "是否合格", index = 7) private String outRsSign; /** 出站NG原因 */ @Excel(name = "出站NG原因") @ExcelProperty(value = "NG原因", index = 8) private String outMsgSign; /** 采集时间 */ // @JsonFormat(pattern = "yyyy-MM-dd") @Excel(name = "采集时间") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") @ExcelProperty(value = "采集时间", index = 9) private Date collectionTime; /** 预留字段1 */ private String spareField1; /** 预留字段2 */ private String spareField2; /** 创建用户 */ private String createUser; /** 更改用户 */ private String updateUser; /** 节拍时间 */ @Excel(name = "节拍时间") @ExcelProperty(value = "节拍时间", index = 10) private String beatTime; @TableField(exist = false) private Long beatTimeLong; private Long[] ids; public Long[] getIds() { return ids; } public void setIds(Long[] ids) { this.ids = ids; } public void setId(Long id) { this.id = id; } public Long getId() { return id; } public void setWorkOrderNo(String workOrderNo) { this.workOrderNo = workOrderNo; } public String getWorkOrderNo() { return workOrderNo; } public void setSfcCode(String sfcCode) { this.sfcCode = sfcCode; } public String getSfcCode() { return sfcCode; } public void setProductCode(String productCode) { this.productCode = productCode; } public String getProductCode() { return productCode; } public void setProductionLine(String productionLine) { this.productionLine = productionLine; } public String getProductionLine() { return productionLine; } public void setLocationCode(String locationCode) { this.locationCode = locationCode; } public String getLocationCode() { return locationCode; } public void setEquipmentNo(String equipmentNo) { this.equipmentNo = equipmentNo; } public String getEquipmentNo() { return equipmentNo; } public void setInboundTime(Date inboundTime) { this.inboundTime = inboundTime; } public Date getInboundTime() { return inboundTime; } public void setOutboundTime(Date outboundTime) { this.outboundTime = outboundTime; } public Date getOutboundTime() { return outboundTime; } public void setInRsSign(String inRsSign) { this.inRsSign = inRsSign; } public String getInRsSign() { return inRsSign; } public void setInMsgSign(String inMsgSign) { this.inMsgSign = inMsgSign; } public String getInMsgSign() { return inMsgSign; } public void setOutRsSign(String outRsSign) { this.outRsSign = outRsSign; } public String getOutRsSign() { return outRsSign; } public void setOutMsgSign(String outMsgSign) { this.outMsgSign = outMsgSign; } public String getOutMsgSign() { return outMsgSign; } public void setCollectionTime(Date collectionTime) { this.collectionTime = collectionTime; } public Date getCollectionTime() { return collectionTime; } public void setSpareField1(String spareField1) { this.spareField1 = spareField1; } public String getSpareField1() { return spareField1; } public void setSpareField2(String spareField2) { this.spareField2 = spareField2; } public String getSpareField2() { return spareField2; } public void setCreateUser(String createUser) { this.createUser = createUser; } public String getCreateUser() { return createUser; } public void setUpdateUser(String updateUser) { this.updateUser = updateUser; } public String getUpdateUser() { return updateUser; } public void setBeatTime(String beatTime) { this.beatTime = beatTime; } public String getBeatTime() { return beatTime; } @Override public String toString() { return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) .append("id", getId()) .append("workOrderNo", getWorkOrderNo()) .append("sfcCode", getSfcCode()) .append("productCode", getProductCode()) .append("productionLine", getProductionLine()) .append("locationCode", getLocationCode()) .append("equipmentNo", getEquipmentNo()) .append("inboundTime", getInboundTime()) .append("outboundTime", getOutboundTime()) .append("inRsSign", getInRsSign()) .append("inMsgSign", getInMsgSign()) .append("outRsSign", getOutRsSign()) .append("outMsgSign", getOutMsgSign()) .append("collectionTime", getCollectionTime()) .append("spareField1", getSpareField1()) .append("spareField2", getSpareField2()) .append("createUser", getCreateUser()) .append("createTime", getCreateTime()) .append("updateUser", getUpdateUser()) .append("updateTime", getUpdateTime()) .append("beatTime", getBeatTime()) .toString(); } }