package com.unis.detectionnum.server.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * x，y的步长
 */
@Data
public class GetXYDO {

    //主键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;

    //设备y值的弧度
    private Double radian;

    //设备x值的弧度
    private double pointx_radian;

    //设备y值的弧度
    private double point_radian;

    //返回结果index_m
    @ApiModelProperty(value = "返回结果index_m")
    private int m_index = 0;

    //返回结果n_index
    @ApiModelProperty(value = "返回结果n_index1")
    private int n_index1 = 0;

    //返回结果n_index
    @ApiModelProperty(value = "返回结果n_index2")
    private int n_index2 = 0;

    //返回结果n_index
    @ApiModelProperty(value = "返回结果n_index3")
    private int n_index3 = 0;

    //结果1
    @ApiModelProperty(value = "结果1")
    private double result_1 = 0.0;

    //结果2
    @ApiModelProperty(value = "结果2")
    private double result_2 = 0.0;

    //结果3
    @ApiModelProperty(value = "结果3")
    private double result_3 = 0.0;

    @ApiModelProperty(value = "区分区域")
    private int s_region;

    @ApiModelProperty(value = "仓房左边长")
    private double houseLengthLeft;

    @ApiModelProperty(value = "仓房右边长")
    private double houseLengthRight;

    @ApiModelProperty(value = "仓房宽度")
    private double houseWide;

    @Override
    public String toString() {
        return "{:"+sbCode+",pointX:"+pointX+",pointY:" +pointY+ ",pointZ: "+pointZ +
                ",createDate: " +createDate+",remark: "+remark+"}";
    }


}
