package com.phlx.wool.entity;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.databinding.BaseObservable;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;


/**
 * 绒毛测量 对象 zs_villus_gauge
 *
 * @author phlx
 * @date 2021-01-18
 */
@Entity
public class VillusGaugeEntity  extends BaseObservable implements Parcelable {

    /**
     * 主键
     */
    @Id(autoincrement = false)
    private Long id;

    /**
     * 收购批次
     */
    private String buyBatch;

    /**
     * 测量日期
     */
    private String measuringTime;

    /**
     * 直径μm
     */
    private String diameter;

    /**
     * 长度cm
     */
    private String length;

    /**
     * 长度变异系数
     */
    private String lenghtRsd;

    /**
     * 绒伸直长cm
     */
    private String villusStraightLong;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    private String createTime;

    /**
     * 数据状态 0--上传成功，1----未上传或上传失败
     */
    private int status;

    public VillusGaugeEntity() {
    }

    @Generated(hash = 1062554218)
    public VillusGaugeEntity(Long id, String buyBatch, String measuringTime,
            String diameter, String length, String lenghtRsd,
            String villusStraightLong, String createBy, String createTime,
            int status) {
        this.id = id;
        this.buyBatch = buyBatch;
        this.measuringTime = measuringTime;
        this.diameter = diameter;
        this.length = length;
        this.lenghtRsd = lenghtRsd;
        this.villusStraightLong = villusStraightLong;
        this.createBy = createBy;
        this.createTime = createTime;
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getBuyBatch() {
        return buyBatch;
    }

    public void setBuyBatch(String buyBatch) {
        this.buyBatch = buyBatch;
    }

    public String getMeasuringTime() {
        return measuringTime;
    }

    public void setMeasuringTime(String measuringTime) {
        this.measuringTime = measuringTime;
    }

    public String getDiameter() {
        return diameter;
    }

    public void setDiameter(String diameter) {
        this.diameter = diameter;
    }

    public String getLength() {
        return length;
    }

    public void setLength(String length) {
        this.length = length;
    }

    public String getLenghtRsd() {
        return lenghtRsd;
    }

    public void setLenghtRsd(String lenghtRsd) {
        this.lenghtRsd = lenghtRsd;
    }

    public String getVillusStraightLong() {
        return villusStraightLong;
    }

    public void setVillusStraightLong(String villusStraightLong) {
        this.villusStraightLong = villusStraightLong;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "VillusGaugeEntity{" +
                "id=" + id +
                ", buyBatch='" + buyBatch + '\'' +
                ", measuringTime='" + measuringTime + '\'' +
                ", diameter='" + diameter + '\'' +
                ", length='" + length + '\'' +
                ", lenghtRsd='" + lenghtRsd + '\'' +
                ", villusStraightLong='" + villusStraightLong + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime='" + createTime + '\'' +
                ", status='" + status + '\'' +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {

    }
}
