|  |  | 
 |  |  | 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_wip_sn_ex | 
 |  |  |  */ | 
 |  |  | * 设备关联表 | 
 |  |  | * @TableName sta_wip_sn_ex | 
 |  |  | */ | 
 |  |  | @TableName(value="sta_wip_sn_ex", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | public class StaWipSnEx implements Serializable { | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private String id; | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | public class StaWipSnEx implements BaseEntity { | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 设备码 | 
 |  |  |      */ | 
 |  |  |     private String deviceNo; | 
 |  |  |  | 
 |  |  |     *  | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long id; | 
 |  |  |     /** | 
 |  |  |      *  | 
 |  |  |      */ | 
 |  |  |     private Integer productId; | 
 |  |  |  | 
 |  |  |     * 设备码 | 
 |  |  |     */ | 
 |  |  |     public String deviceNo; | 
 |  |  |     /** | 
 |  |  |      * 关联产品名 | 
 |  |  |      */ | 
 |  |  |     private String productName; | 
 |  |  |  | 
 |  |  |     *  | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long productId; | 
 |  |  |     /** | 
 |  |  |      * 关联设备码 | 
 |  |  |      */ | 
 |  |  |     private String productNo; | 
 |  |  |  | 
 |  |  |     * 关联产品名 | 
 |  |  |     */ | 
 |  |  |     public String productName; | 
 |  |  |     /** | 
 |  |  |      * 创建时间 | 
 |  |  |      */ | 
 |  |  |     private Date createTime; | 
 |  |  |  | 
 |  |  |     * 关联设备码 | 
 |  |  |     */ | 
 |  |  |     public String productNo; | 
 |  |  |     /** | 
 |  |  |      * 更新人 | 
 |  |  |      */ | 
 |  |  |     private String createBy; | 
 |  |  |     * 创建时间 | 
 |  |  |     */ | 
 |  |  |     public Date createTime; | 
 |  |  |     /** | 
 |  |  |     * 更新人 | 
 |  |  |     */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public 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; | 
 |  |  |         } | 
 |  |  |         StaWipSnEx other = (StaWipSnEx) that; | 
 |  |  |         return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId())) | 
 |  |  |             && (this.getDeviceNo() == null ? other.getDeviceNo() == null : this.getDeviceNo().equals(other.getDeviceNo())) | 
 |  |  |             && (this.getProductId() == null ? other.getProductId() == null : this.getProductId().equals(other.getProductId())) | 
 |  |  |             && (this.getProductName() == null ? other.getProductName() == null : this.getProductName().equals(other.getProductName())) | 
 |  |  |             && (this.getProductNo() == null ? other.getProductNo() == null : this.getProductNo().equals(other.getProductNo())) | 
 |  |  |             && (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 + ((getDeviceNo() == null) ? 0 : getDeviceNo().hashCode()); | 
 |  |  |         result = prime * result + ((getProductId() == null) ? 0 : getProductId().hashCode()); | 
 |  |  |         result = prime * result + ((getProductName() == null) ? 0 : getProductName().hashCode()); | 
 |  |  |         result = prime * result + ((getProductNo() == null) ? 0 : getProductNo().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(", deviceNo=").append(deviceNo); | 
 |  |  |         sb.append(", productId=").append(productId); | 
 |  |  |         sb.append(", productName=").append(productName); | 
 |  |  |         sb.append(", productNo=").append(productNo); | 
 |  |  |         sb.append(", createTime=").append(createTime); | 
 |  |  |         sb.append(", createBy=").append(createBy); | 
 |  |  |         sb.append(", serialVersionUID=").append(serialVersionUID); | 
 |  |  |         sb.append("]"); | 
 |  |  |         return sb.toString(); | 
 |  |  |     } | 
 |  |  | } | 
 |  |  | } |