package com.zy.asrs.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.core.common.Cools;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
import java.util.Date;
|
|
@Data
|
@TableName("asr_bas_sensor")
|
public class BasSensor implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "id")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 传感器编号
|
*/
|
@ApiModelProperty(value= "传感器编号")
|
private Double number;
|
|
/**
|
* 传感器位置
|
*/
|
@ApiModelProperty(value= "传感器位置")
|
private String location;
|
|
/**
|
* 传感器温度
|
*/
|
@ApiModelProperty(value= "传感器温度")
|
private Double temperature;
|
|
/**
|
* 传感器湿度
|
*/
|
@ApiModelProperty(value= "传感器湿度")
|
private Double humidity;
|
|
/**
|
* 创建时间
|
*/
|
@ApiModelProperty(value= "传感器湿度")
|
private Date createTime;
|
|
public BasSensor() {}
|
|
public BasSensor(Double number,String location,Double temperature,Double humidity) {
|
this.number = number;
|
this.location = location;
|
this.temperature = temperature;
|
this.humidity = humidity;
|
}
|
|
// BasSensor basSensor = new BasSensor(
|
// null, // 传感器编号[非空]
|
// null, // 传感器位置
|
// null, // 传感器温度
|
// null // 传感器湿度
|
// );
|
|
|
}
|