|  |  | 
 |  |  | 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 lombok.Data; | 
 |  |  | import lombok.EqualsAndHashCode; | 
 |  |  |  | 
 |  |  | 
 |  |  |  * </p> | 
 |  |  |  * | 
 |  |  |  * @author moral | 
 |  |  |  * @since 2021-05-06 | 
 |  |  |  * @since 2021-05-08 | 
 |  |  |  */ | 
 |  |  | @Data | 
 |  |  | @EqualsAndHashCode(callSuper = false) | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 公司自定义因子编号 | 
 |  |  |      */ | 
 |  |  |     private String sensorKey; | 
 |  |  |     @TableField(value = "`desc`") | 
 |  |  |     private String desc; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 因子单位 | 
 |  |  |      * 国标因子编码 | 
 |  |  |      */ | 
 |  |  |     private String unit; | 
 |  |  |     @TableField(value = "`code`") | 
 |  |  |     private String code; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 上限值 | 
 |  |  |      * 上限 | 
 |  |  |      */ | 
 |  |  |     private Double upper; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 下限值 | 
 |  |  |      * 下限 | 
 |  |  |      */ | 
 |  |  |     private Double lower; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 默认单位 | 
 |  |  |      */ | 
 |  |  |     private String defaultUnitKey; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 创建时间 | 
 |  |  |      */ | 
 |  |  |     private LocalDateTime createTime; | 
 |  |  |     private Date createTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 更新时间 | 
 |  |  |      */ | 
 |  |  |     private LocalDateTime updateTime; | 
 |  |  |     private Date updateTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 是否删除 | 
 |  |  |      */ | 
 |  |  |     private String isDelete; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 描述 | 
 |  |  |      */ | 
 |  |  |     private String desc; | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String unit; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String unitKey; | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     protected Serializable pkVal() { | 
 |  |  |         return this.id; | 
 |  |  |     } | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String showUnit; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String showUnitKey; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String alarmLevel; | 
 |  |  |  | 
 |  |  |     @TableField(exist = false) | 
 |  |  |     private String formula; | 
 |  |  |  | 
 |  |  | } |