package com.unis.detectionnum.server.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

/*
 *扫描点位数据实体类
 */
@SuppressWarnings("serial")
@Data
public class ScanPointsDO  implements Serializable {
	
	//主键id
    private String id;

    //设备编号（库区code+仓房code+001）
    private String sbCode;

    //粮食体积（cm）
    private double pointX;

    // 粮食体积（cm）
    private double pointY;

    //粮食体积（读取到为mm,需转换为cm）
    private Double pointZ;

    //创建时间
    @DateTimeFormat(pattern = "yyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createDate;

    //备注
    private String remark;
    
    //扫描纪录id
    private String operateId;

    //可信度
    private Integer point_trust;

    //返回结果index_m
    private int m_index = 0;

    //返回结果n_index
    private int n_index1 = 0;

    //返回结果n_index
    private int n_index2 = 0;

    //返回结果n_index
    private int n_index3 = 0;

    //结果1
    private double result_1 = 0.0;

    //结果2
    private double result_2 = 0.0;

    @Override
    public String toString() {
        return "ScanPointsDO{" +
                "id='" + id + '\'' +
                ", sbCode='" + sbCode + '\'' +
                ", pointX=" + pointX +
                ", pointY=" + pointY +
                ", pointZ=" + pointZ +
                ", createDate=" + createDate +
                ", remark='" + remark + '\'' +
                ", operateId='" + operateId + '\'' +
                ", point_trust=" + point_trust +
                ", m_index=" + m_index +
                ", n_index1=" + n_index1 +
                ", n_index2=" + n_index2 +
                ", n_index3=" + n_index3 +
                ", result_1=" + result_1 +
                ", result_2=" + result_2 +
                '}';
    }
}