package org.jeecg.modules.sensor.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class DeviceDataRequest {
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**创建人*/
    @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 java.util.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 java.util.Date updateTime;
    /**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    /**采集时刻*/
    @Excel(name = "采集时刻", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "采集时刻")
    private java.util.Date time;
    /**设备ID*/
    @Excel(name = "设备ID", width = 15)
    @ApiModelProperty(value = "设备ID")
    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceId;
    /**U相电流*/
    @Excel(name = "U相电流", width = 15)
    @ApiModelProperty(value = "U相电流")
    private String Udl;
    /**V相电流*/
    @Excel(name = "V相电流", width = 15)
    @ApiModelProperty(value = "V相电流")
    private String Vdl;
    /**W相电流*/
    @Excel(name = "W相电流", width = 15)
    @ApiModelProperty(value = "W相电流")
    private String Wdl;
    /**U相电压*/
    @Excel(name = "U相电压", width = 15)
    @ApiModelProperty(value = "U相电压")
    private String Udy;
    /**V相电压*/
    @Excel(name = "V相电压", width = 15)
    @ApiModelProperty(value = "V相电压")
    private String Vdy;
    /**W相电压*/
    @Excel(name = "W相电压", width = 15)
    @ApiModelProperty(value = "W相电压")
    private String Wdy;
    @Excel(name = "总功率", width = 15)
    @ApiModelProperty(value = "总功率")
    private double gl;
    /**震动x*/
    @Excel(name = "震动x", width = 15)
    @ApiModelProperty(value = "震动x")
    private String zdx;
    /**震动y*/
    @Excel(name = "震动y", width = 15)
    @ApiModelProperty(value = "震动y")
    private String zdy;
    /**震动z*/
    @Excel(name = "震动z", width = 15)
    @ApiModelProperty(value = "震动z")
    private String zdz;
    /**氧气*/
    @Excel(name = "yq", width = 15)
    @ApiModelProperty(value = "震动x")
    private String yq;
    /**一氧化碳*/
    @Excel(name = "co", width = 15)
    @ApiModelProperty(value = "震动y")
    private String co;
    /**可燃性气体*/
    @Excel(name = "ch", width = 15)
    @ApiModelProperty(value = "可燃性气体")
    private String ch;
    /**温湿度*/
    @Excel(name = "温湿度", width = 15)
    @ApiModelProperty(value = "温湿度")
    private String wsd;
    /**湿度*/
    @Excel(name = "湿度", width = 15)
    @ApiModelProperty(value = "湿度")
    private String sd;
    /**烟雾*/
    @Excel(name = "烟雾", width = 15)
    @ApiModelProperty(value = "烟雾")
    private String smoke;
    /**噪声*/
    @Excel(name = "噪声", width = 15)
    @ApiModelProperty(value = "噪声")
    private String zs;

}
