|  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 因子Id | 
 |  |  |      */ | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private Integer sensorId; | 
 |  |  |  | 
 |  |  |     /* | 
 |  |  |     * 因子code | 
 |  |  |     * */ | 
 |  |  |     private String sensorCode; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 单位字典key | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     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 | 
 |  |  |     protected Serializable pkVal() { | 
 |  |  |         return this.id; | 
 |  |  |     public int hashCode() { | 
 |  |  |  | 
 |  |  |         return Objects.hash(super.hashCode(), sensorCode, unitKey, upper, lower); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |  | 
 |  |  | } |