|  |  | 
 |  |  | package com.dy.pmsGlobal.pojoSta; | 
 |  |  |  | 
 |  |  | import java.io.Serializable; | 
 |  |  | import com.alibaba.fastjson2.annotation.JSONField; | 
 |  |  | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableField; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
 |  |  | import com.dy.common.po.BaseEntity; | 
 |  |  | import jakarta.validation.constraints.NotBlank; | 
 |  |  | import lombok.*; | 
 |  |  |  | 
 |  |  | import java.util.Date; | 
 |  |  | import lombok.Data; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 设备生产日志表 | 
 |  |  |  * @TableName sta_device_production_log | 
 |  |  |  */ | 
 |  |  | * 设备生产日志表 | 
 |  |  | * @TableName sta_device_production_log | 
 |  |  | */ | 
 |  |  | @TableName(value="sta_device_production_log", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | public class StaDeviceProductionLog implements Serializable { | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private Long id; | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | public class StaDeviceProductionLog implements BaseEntity { | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 设备码 | 
 |  |  |      */ | 
 |  |  |     private String equipNo; | 
 |  |  |  | 
 |  |  |     *  | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long id; | 
 |  |  |     /** | 
 |  |  |      * 计划id | 
 |  |  |      */ | 
 |  |  |     private String planId; | 
 |  |  |  | 
 |  |  |     * 设备码 | 
 |  |  |     */ | 
 |  |  |     @NotBlank(message="设备码不能为空") | 
 |  |  |     public String deviceNo; | 
 |  |  |     /** | 
 |  |  |      * 工站id | 
 |  |  |      */ | 
 |  |  |     private String stationId; | 
 |  |  |  | 
 |  |  |     * 生产登录id | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long workId; | 
 |  |  |     /** | 
 |  |  |      * 当前节点 | 
 |  |  |      */ | 
 |  |  |     private String currNode; | 
 |  |  |  | 
 |  |  |     * 维修id | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long repairId; | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private String nextNode; | 
 |  |  |  | 
 |  |  |     * 计划id | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long planId; | 
 |  |  |     /** | 
 |  |  |      * 投入时间 | 
 |  |  |      */ | 
 |  |  |     private Date inLineTime; | 
 |  |  |  | 
 |  |  |     * 工站id | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long stationId; | 
 |  |  |     /** | 
 |  |  |      * 状态: 1:组装中,2:完成,3:维修,4:报废 | 
 |  |  |      */ | 
 |  |  |     private Integer status; | 
 |  |  |  | 
 |  |  |     * 当前节点 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long currNode; | 
 |  |  |     /** | 
 |  |  |      * 1:成功,2:失败 | 
 |  |  |      */ | 
 |  |  |     private Integer result; | 
 |  |  |  | 
 |  |  |     * 节点作业内容 | 
 |  |  |     */ | 
 |  |  |     public String nodeContent; | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private String errorCode; | 
 |  |  |  | 
 |  |  |     * 记录设备周期内容 | 
 |  |  |     */ | 
 |  |  |     public String deviceCycleContent; | 
 |  |  |     /** | 
 |  |  |      * 备注 | 
 |  |  |      */ | 
 |  |  |     private String memo; | 
 |  |  |  | 
 |  |  |     * 状态: 0:待生产,1:组装中,2:完成,3:维修,4:报废,5:测试不通过,6:品检不通过 | 
 |  |  |     */ | 
 |  |  |     public Integer status; | 
 |  |  |     /** | 
 |  |  |      * 辅助人员:辅助员工id,以逗号隔开 | 
 |  |  |      */ | 
 |  |  |     private String assistants; | 
 |  |  |  | 
 |  |  |     * 1:成功,2:失败 | 
 |  |  |     */ | 
 |  |  |     public Integer result; | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private Date updatedDate; | 
 |  |  |  | 
 |  |  |     *  | 
 |  |  |     */ | 
 |  |  |     public String errorMsg; | 
 |  |  |     /** | 
 |  |  |      * 操作员id | 
 |  |  |      */ | 
 |  |  |     private String updatedBy; | 
 |  |  |  | 
 |  |  |     * 辅助人员:辅助员工id,以逗号隔开 | 
 |  |  |     */ | 
 |  |  |     public String assistants; | 
 |  |  |     /** | 
 |  |  |      * 生产登录id | 
 |  |  |      */ | 
 |  |  |     private Long claimId; | 
 |  |  |  | 
 |  |  |     * 入站时间 | 
 |  |  |     */ | 
 |  |  |     public Date inTime; | 
 |  |  |     /** | 
 |  |  |      * 维修id | 
 |  |  |     * 出站时间 | 
 |  |  |     */ | 
 |  |  |     public Date outTime; | 
 |  |  |     /** | 
 |  |  |     * 操作员id | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long updatedBy; | 
 |  |  |     /** | 
 |  |  |     * 备注 | 
 |  |  |     */ | 
 |  |  |     public String memo; | 
 |  |  |     /** | 
 |  |  |      * 默认为1,没有设备码时可设置生产数量 | 
 |  |  |      */ | 
 |  |  |     private Long repairId; | 
 |  |  |     public Integer number; | 
 |  |  |  | 
 |  |  |     private static final long serialVersionUID = 1L; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public boolean equals(Object that) { | 
 |  |  |         if (this == that) { | 
 |  |  |             return true; | 
 |  |  |         } | 
 |  |  |         if (that == null) { | 
 |  |  |             return false; | 
 |  |  |         } | 
 |  |  |         if (getClass() != that.getClass()) { | 
 |  |  |             return false; | 
 |  |  |         } | 
 |  |  |         StaDeviceProductionLog other = (StaDeviceProductionLog) that; | 
 |  |  |         return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | 
 |  |  |             && (this.getEquipNo() == null ? other.getEquipNo() == null : this.getEquipNo().equals(other.getEquipNo())) | 
 |  |  |             && (this.getPlanId() == null ? other.getPlanId() == null : this.getPlanId().equals(other.getPlanId())) | 
 |  |  |             && (this.getStationId() == null ? other.getStationId() == null : this.getStationId().equals(other.getStationId())) | 
 |  |  |             && (this.getCurrNode() == null ? other.getCurrNode() == null : this.getCurrNode().equals(other.getCurrNode())) | 
 |  |  |             && (this.getNextNode() == null ? other.getNextNode() == null : this.getNextNode().equals(other.getNextNode())) | 
 |  |  |             && (this.getInLineTime() == null ? other.getInLineTime() == null : this.getInLineTime().equals(other.getInLineTime())) | 
 |  |  |             && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus())) | 
 |  |  |             && (this.getResult() == null ? other.getResult() == null : this.getResult().equals(other.getResult())) | 
 |  |  |             && (this.getErrorCode() == null ? other.getErrorCode() == null : this.getErrorCode().equals(other.getErrorCode())) | 
 |  |  |             && (this.getMemo() == null ? other.getMemo() == null : this.getMemo().equals(other.getMemo())) | 
 |  |  |             && (this.getAssistants() == null ? other.getAssistants() == null : this.getAssistants().equals(other.getAssistants())) | 
 |  |  |             && (this.getUpdatedDate() == null ? other.getUpdatedDate() == null : this.getUpdatedDate().equals(other.getUpdatedDate())) | 
 |  |  |             && (this.getUpdatedBy() == null ? other.getUpdatedBy() == null : this.getUpdatedBy().equals(other.getUpdatedBy())) | 
 |  |  |             && (this.getClaimId() == null ? other.getClaimId() == null : this.getClaimId().equals(other.getClaimId())) | 
 |  |  |             && (this.getRepairId() == null ? other.getRepairId() == null : this.getRepairId().equals(other.getRepairId())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public int hashCode() { | 
 |  |  |         final int prime = 31; | 
 |  |  |         int result = 1; | 
 |  |  |         result = prime * result + ((getId() == null) ? 0 : getId().hashCode()); | 
 |  |  |         result = prime * result + ((getEquipNo() == null) ? 0 : getEquipNo().hashCode()); | 
 |  |  |         result = prime * result + ((getPlanId() == null) ? 0 : getPlanId().hashCode()); | 
 |  |  |         result = prime * result + ((getStationId() == null) ? 0 : getStationId().hashCode()); | 
 |  |  |         result = prime * result + ((getCurrNode() == null) ? 0 : getCurrNode().hashCode()); | 
 |  |  |         result = prime * result + ((getNextNode() == null) ? 0 : getNextNode().hashCode()); | 
 |  |  |         result = prime * result + ((getInLineTime() == null) ? 0 : getInLineTime().hashCode()); | 
 |  |  |         result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode()); | 
 |  |  |         result = prime * result + ((getResult() == null) ? 0 : getResult().hashCode()); | 
 |  |  |         result = prime * result + ((getErrorCode() == null) ? 0 : getErrorCode().hashCode()); | 
 |  |  |         result = prime * result + ((getMemo() == null) ? 0 : getMemo().hashCode()); | 
 |  |  |         result = prime * result + ((getAssistants() == null) ? 0 : getAssistants().hashCode()); | 
 |  |  |         result = prime * result + ((getUpdatedDate() == null) ? 0 : getUpdatedDate().hashCode()); | 
 |  |  |         result = prime * result + ((getUpdatedBy() == null) ? 0 : getUpdatedBy().hashCode()); | 
 |  |  |         result = prime * result + ((getClaimId() == null) ? 0 : getClaimId().hashCode()); | 
 |  |  |         result = prime * result + ((getRepairId() == null) ? 0 : getRepairId().hashCode()); | 
 |  |  |         return result; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @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(", equipNo=").append(equipNo); | 
 |  |  |         sb.append(", planId=").append(planId); | 
 |  |  |         sb.append(", stationId=").append(stationId); | 
 |  |  |         sb.append(", currNode=").append(currNode); | 
 |  |  |         sb.append(", nextNode=").append(nextNode); | 
 |  |  |         sb.append(", inLineTime=").append(inLineTime); | 
 |  |  |         sb.append(", status=").append(status); | 
 |  |  |         sb.append(", result=").append(result); | 
 |  |  |         sb.append(", errorCode=").append(errorCode); | 
 |  |  |         sb.append(", memo=").append(memo); | 
 |  |  |         sb.append(", assistants=").append(assistants); | 
 |  |  |         sb.append(", updatedDate=").append(updatedDate); | 
 |  |  |         sb.append(", updatedBy=").append(updatedBy); | 
 |  |  |         sb.append(", claimId=").append(claimId); | 
 |  |  |         sb.append(", repairId=").append(repairId); | 
 |  |  |         sb.append(", serialVersionUID=").append(serialVersionUID); | 
 |  |  |         sb.append("]"); | 
 |  |  |         return sb.toString(); | 
 |  |  |     } | 
 |  |  | } | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String planName; | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String stationName; | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String updateUserName; | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     public String assistantNames; | 
 |  |  | } |