package com.newfiber.termite.domain; 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 com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.newfiber.common.core.web.domain.BaseEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.Date; import lombok.Data; import lombok.EqualsAndHashCode; import org.springframework.data.mongodb.core.mapping.Field; import org.springframework.data.mongodb.core.mapping.MongoId; /** * 白蚁防治数据对象 ter_device_monitoring_data_realtime * * @author X.K * @date 2024-05-28 */ @Data @TableName("ter_device_monitoring_data_realtime") @EqualsAndHashCode(callSuper = true) @ApiModel(value = "白蚁防治数据", description = "白蚁防治数据") public class DeviceMonitoringDataRealtime extends BaseEntity{ private static final long serialVersionUID = 1L; @MongoId @Field("_id") @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty(value = "主键id") @TableId(value = "id", type = IdType.ASSIGN_ID) @JsonFormat(shape = JsonFormat.Shape.STRING) private Long id; /** * 设备编码 */ @ApiModelProperty(value = "设备编码") private String sn; /** * 数据日期 */ @ApiModelProperty(value = "数据日期") private String date; /** * 有无白蚁 1有 2无 */ @ApiModelProperty(value = "有无白蚁 1有 2无") private String yesnoant; /** * 目前照片 */ @ApiModelProperty(value = "目前照片") private String rtpitcu; /** * 识别后照片 */ @ApiModelProperty(value = "识别后照片") private String idenpitcu; /** * 确认是否属实 */ @ApiModelProperty(value = "确认是否属实") private String idencolle; /** * 白蚁数量 */ @ApiModelProperty(value = "白蚁数量") private Integer antNumber; /** * 其他白蚁数量(若蚁+工蚁) */ @ApiModelProperty(value = "其他白蚁数量(若蚁+工蚁)") private Integer otherAntNumber; /** * 是否投药 1:是 2否 默认2 */ @ApiModelProperty(value = "是否投药 1:是 2否 默认2") private String druing; /** * 投药时间 */ @ApiModelProperty(value = "投药时间") private Date druingDatetime; /** * 是否加热(1是 | 2否) */ @ApiModelProperty(value = "是否加热(1是 | 2否)") private String heating; /** * 加热时间 */ @ApiModelProperty(value = "加热时间") private Date heatingDatetime; /** * 上传时间 */ @ApiModelProperty(value = "上传时间") private Date uptime; // DB Property /** * */ @TableField(exist = false) @ApiModelProperty(value = "软件版本") private String software; /** * */ @TableField(exist = false) @ApiModelProperty(value = "硬件版本") private String hardware; /** * */ @TableField(exist = false) @ApiModelProperty(value = "电压") private String voltage; /** * */ @TableField(exist = false) @ApiModelProperty(value = "温度") private String temperature; /** * */ @TableField(exist = false) @ApiModelProperty(value = "信号质量") private String rssi; /** * */ @TableField(exist = false) @ApiModelProperty(value = "中继名称") private String ap; /** * */ @TableField(exist = false) @ApiModelProperty(value = "摄像头") private String camera; /** * 项目编号 */ @TableField(exist = false) @ApiModelProperty(value = "项目编号") private String projectCode; }