package com.ruoyi.iot.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author wzh
 * @since 2023-06-25
 */
@Getter
@Setter
@TableName("t_plan_record")
public class TPlanRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 运行记录
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 运行时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime createTime;

    /**
     * 设备ID
     */
    private String deviceId;


    /**
     * 用户ID
     */
    private Long userId;

    /**状态*/
    private Integer status;

    /**
     * 检测状态
     */
    private String checkResult;

    /**
     * 原预约的ID
     */
    private Long planId;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime planTime;
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    private LocalDateTime checkTime;

    private String ccid;

    private Integer port;

}
