|  |  | 
 |  |  | 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.TableName; | 
 |  |  | import com.dy.common.po.BaseEntity; | 
 |  |  | import jakarta.validation.constraints.NotNull; | 
 |  |  | import lombok.*; | 
 |  |  |  | 
 |  |  |  | 
 |  |  |  | 
 |  |  | import java.util.Date; | 
 |  |  | import lombok.Data; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  *  | 
 |  |  |  * @TableName sta_repair_info | 
 |  |  |  */ | 
 |  |  | *  | 
 |  |  | * @TableName sta_repair_info | 
 |  |  | */ | 
 |  |  | @TableName(value="sta_repair_info", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | public class StaRepairInfo implements Serializable { | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | public class StaRepairInfo implements BaseEntity { | 
 |  |  |  | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long id; | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private Long id; | 
 |  |  |  | 
 |  |  |     * 设备码 | 
 |  |  |     */ | 
 |  |  |     public String equipNo; | 
 |  |  |     /** | 
 |  |  |      * 设备码 | 
 |  |  |      */ | 
 |  |  |     private String equipNo; | 
 |  |  |  | 
 |  |  |     * 生产登录id | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long workId; | 
 |  |  |     /** | 
 |  |  |      * 从哪个节点进入维修 | 
 |  |  |      */ | 
 |  |  |     private String fromNode; | 
 |  |  |  | 
 |  |  |     * 从哪个节点进入维修 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long fromNode; | 
 |  |  |     /** | 
 |  |  |      * 维修原因 | 
 |  |  |      */ | 
 |  |  |     private String repairReason; | 
 |  |  |  | 
 |  |  |     * 维修原因 | 
 |  |  |     */ | 
 |  |  |     public String repairReason; | 
 |  |  |     /** | 
 |  |  |      * 去向节点 | 
 |  |  |      */ | 
 |  |  |     private String toNode; | 
 |  |  |  | 
 |  |  |     * 维修员工 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long repairBy; | 
 |  |  |     /** | 
 |  |  |      * 维修员工 | 
 |  |  |      */ | 
 |  |  |     private String repairBy; | 
 |  |  |     * 维修时间 | 
 |  |  |     */ | 
 |  |  |     public Date repairTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 维修时间 | 
 |  |  |      */ | 
 |  |  |     private Date repairTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 创建时间 | 
 |  |  |      */ | 
 |  |  |     private Date createTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 推送员工 | 
 |  |  |      */ | 
 |  |  |     private Long createBy; | 
 |  |  |  | 
 |  |  |     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; | 
 |  |  |         } | 
 |  |  |         StaRepairInfo other = (StaRepairInfo) 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.getFromNode() == null ? other.getFromNode() == null : this.getFromNode().equals(other.getFromNode())) | 
 |  |  |             && (this.getRepairReason() == null ? other.getRepairReason() == null : this.getRepairReason().equals(other.getRepairReason())) | 
 |  |  |             && (this.getToNode() == null ? other.getToNode() == null : this.getToNode().equals(other.getToNode())) | 
 |  |  |             && (this.getRepairBy() == null ? other.getRepairBy() == null : this.getRepairBy().equals(other.getRepairBy())) | 
 |  |  |             && (this.getRepairTime() == null ? other.getRepairTime() == null : this.getRepairTime().equals(other.getRepairTime())) | 
 |  |  |             && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) | 
 |  |  |             && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy())); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @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 + ((getFromNode() == null) ? 0 : getFromNode().hashCode()); | 
 |  |  |         result = prime * result + ((getRepairReason() == null) ? 0 : getRepairReason().hashCode()); | 
 |  |  |         result = prime * result + ((getToNode() == null) ? 0 : getToNode().hashCode()); | 
 |  |  |         result = prime * result + ((getRepairBy() == null) ? 0 : getRepairBy().hashCode()); | 
 |  |  |         result = prime * result + ((getRepairTime() == null) ? 0 : getRepairTime().hashCode()); | 
 |  |  |         result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); | 
 |  |  |         result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().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(", fromNode=").append(fromNode); | 
 |  |  |         sb.append(", repairReason=").append(repairReason); | 
 |  |  |         sb.append(", toNode=").append(toNode); | 
 |  |  |         sb.append(", repairBy=").append(repairBy); | 
 |  |  |         sb.append(", repairTime=").append(repairTime); | 
 |  |  |         sb.append(", createTime=").append(createTime); | 
 |  |  |         sb.append(", createBy=").append(createBy); | 
 |  |  |         sb.append(", serialVersionUID=").append(serialVersionUID); | 
 |  |  |         sb.append("]"); | 
 |  |  |         return sb.toString(); | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | } |