package org.jeecg.modules.energy.entity;

import java.io.Serializable;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 振动数据表模板
 * @Author: jeecg-boot
 * @Date:   2024-05-09
 * @Version: V1.0
 */
@Data
@TableName("bu_vibration_online")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_vibration对象", description="振动数据表模板")
public class BuVibration implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**上传服务名*/
	@Excel(name = "上传服务名", width = 15)
    @ApiModelProperty(value = "上传服务名")
    private String serverName;
    /**传感器Id*/
    @Excel(name = "传感器Id", width = 15)
    @ApiModelProperty(value = "传感器Id")
    private String sensorId;
    /**数据状态*/
    @Excel(name = "数据状态", width = 15)
    @ApiModelProperty(value = "数据状态")
    private int status;
    /**异常字段*/
    @Excel(name = "异常字段", width = 15)
    @ApiModelProperty(value = "异常字段")
    private String statusname;
	/**x向加速度振动值*/
	@Excel(name = "x向加速度振动值", width = 15)
    @ApiModelProperty(value = "x向加速度振动值")
    private Double accX;	/**y向振动值*/
	@Excel(name = "y向振动值", width = 15)
    @ApiModelProperty(value = "y向振动值")
    private Double accY;
	/**z向振动值*/
	@Excel(name = "z向振动值", width = 15)
    @ApiModelProperty(value = "z向振动值")
    private Double accZ;
    /**x向速度振动值*/
    @Excel(name = "x向速度振动值", width = 15)
    @ApiModelProperty(value = "x向速度振动值")
    private Double speedX;
    /**y向振动值*/
    @Excel(name = "y向振动值", width = 15)
    @ApiModelProperty(value = "y向振动值")
    private Double speedY;
    /**z向振动值*/
    @Excel(name = "z向振动值", width = 15)
    @ApiModelProperty(value = "z向振动值")
    private Double speedZ;
    /**x向位移振动值*/
    @Excel(name = "x向位移振动值", width = 15)
    @ApiModelProperty(value = "x向位移振动值")
    private Double displacementX;
    /**y向振动值*/
    @Excel(name = "y向振动值", width = 15)
    @ApiModelProperty(value = "y向振动值")
    private Double displacementY;
    /**z向振动值*/
    @Excel(name = "z向振动值", width = 15)
    @ApiModelProperty(value = "z向振动值")
    private Double displacementZ;
    /**振动温度*/
    @Excel(name = "振动温度", width = 15)
    @ApiModelProperty(value = "振动温度")
    private Double temperature;
    /**电池电压*/
    @Excel(name = "电池电压", width = 15)
    @ApiModelProperty(value = "电池电压")
    private Double voltage;
//	/**创建人*/
//    @ApiModelProperty(value = "创建人")
//    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
//	/**更新人*/
//    @ApiModelProperty(value = "更新人")
//    private String updateBy;
//	/**更新日期*/
//	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @ApiModelProperty(value = "更新日期")
//    private Date updateTime;
//	/**所属部门*/
//    @ApiModelProperty(value = "所属部门")
//    private String sysOrgCode;

    @TableField(exist = false)
    private String deviceId;
    @TableField(exist = false)
    private String beginTime;
    @TableField(exist = false)
    private String endTime;
    @TableField(exist = false)
    private String inTime;
    @TableField(exist = false)
    private String outTime;
    @TableField(exist = false)
    private String deviceName;
    @TableField(exist = false)
    private String deviceCode;
//    @TableField(exist = false)
//    private String time;
}
