刘小明
2024-06-20 0c1c30026c906f8055b5f0315785175726f9202c
pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/pojoSta/StaRepairInfo.java
@@ -1,118 +1,69 @@
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 {
    /**
     *
     */
    private Long id;
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class StaRepairInfo implements BaseEntity {
    /**
     * 设备码
     */
    private String equipNo;
    *
    */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long id;
    /**
     * 从哪个节点进入维修
     */
    private String fromNode;
    * 设备码
    */
    public String equipNo;
    /**
     * 维修原因
     */
    private String repairReason;
    * 从哪个节点进入维修
    */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long fromNode;
    /**
     * 去向节点
     */
    private String toNode;
    * 维修原因
    */
    public String repairReason;
    /**
     * 维修员工
     */
    private String repairBy;
    * 去向节点
    */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long toNode;
    /**
     * 维修时间
     */
    private Date repairTime;
    * 维修员工
    */
    @JSONField(serializeUsing= ObjectWriterImplToString.class)
    public Long repairBy;
    /**
     * 创建时间
     */
    private Date createTime;
    * 维修时间
    */
    public Date repairTime;
    /**
     * 推送员工
     */
    private Long 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;
        }
        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();
    }
}
}