package com.moral.api.entity; 
 | 
  
 | 
import com.baomidou.mybatisplus.annotation.IdType; 
 | 
import com.baomidou.mybatisplus.annotation.TableField; 
 | 
import com.baomidou.mybatisplus.extension.activerecord.Model; 
 | 
import com.baomidou.mybatisplus.annotation.TableId; 
 | 
import java.time.LocalDateTime; 
 | 
import java.io.Serializable; 
 | 
import java.util.Date; 
 | 
import java.util.Objects; 
 | 
  
 | 
import lombok.Data; 
 | 
import lombok.EqualsAndHashCode; 
 | 
  
 | 
/** 
 | 
 * <p> 
 | 
 * 型号表因子单位关系表 
 | 
 * </p> 
 | 
 * 
 | 
 * @author moral 
 | 
 * @since 2021-05-14 
 | 
 */ 
 | 
@Data 
 | 
@EqualsAndHashCode(callSuper = false) 
 | 
public class VersionSensorUnit extends Model<VersionSensorUnit> { 
 | 
  
 | 
    private static final long serialVersionUID = 1L; 
 | 
  
 | 
    /** 
 | 
     * 主键 
 | 
     */ 
 | 
    @TableId(value = "id", type = IdType.AUTO) 
 | 
    private Integer id; 
 | 
  
 | 
    /** 
 | 
     * 型号id 
 | 
     */ 
 | 
    private Integer versionId; 
 | 
  
 | 
    /** 
 | 
     * 因子Id 
 | 
     */ 
 | 
    @TableField(exist = false) 
 | 
    private Integer sensorId; 
 | 
  
 | 
    /* 
 | 
    * 因子code 
 | 
    * */ 
 | 
    private String sensorCode; 
 | 
  
 | 
    /** 
 | 
     * 单位字典key 
 | 
     */ 
 | 
    private String unitKey; 
 | 
  
 | 
    /* 
 | 
    * 上限值 
 | 
    * */ 
 | 
    private Double upper; 
 | 
  
 | 
    /* 
 | 
    * 下限值 
 | 
    * */ 
 | 
    private Double lower; 
 | 
  
 | 
    /** 
 | 
     * 创建时间 
 | 
     */ 
 | 
    private Date createTime; 
 | 
  
 | 
    /** 
 | 
     * 更新时间 
 | 
     */ 
 | 
    private Date updateTime; 
 | 
  
 | 
    /** 
 | 
     * 是否删除 
 | 
     */ 
 | 
    private String isDelete; 
 | 
  
 | 
    @Override 
 | 
    public boolean equals(Object o) { 
 | 
        if (this == o) return true; 
 | 
        if (o == null || getClass() != o.getClass()) return false; 
 | 
        VersionSensorUnit that = (VersionSensorUnit) o; 
 | 
        return Objects.equals(sensorCode, that.sensorCode) && 
 | 
                Objects.equals(unitKey, that.unitKey) && 
 | 
                Objects.equals(upper, that.upper) && 
 | 
                Objects.equals(lower, that.lower); 
 | 
    } 
 | 
  
 | 
    @Override 
 | 
    public int hashCode() { 
 | 
  
 | 
        return Objects.hash(super.hashCode(), sensorCode, unitKey, upper, lower); 
 | 
    } 
 | 
  
 | 
  
 | 
} 
 |