package com.bonus.sgzb.base.domain;

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

import java.util.Date;

/**
 * @Author：liang.chao
 * @Date：2024/7/24 - 10:53
 */
@Data
public class DataReceiveDetail {
    @ApiModelProperty(value = "ID")
    private Integer id;

    @ApiModelProperty(value = "推送ID")
    private Integer receiveId;

    @ApiModelProperty(value = "机具类型id")
    private Integer typeId;

    @ApiModelProperty(value = "机具编码ID")
    private Integer maId;

    @ApiModelProperty(value = "机具编码")
    private String maCode;
    @ApiModelProperty(value = "机具名称")
    private String machineName;
    @ApiModelProperty(value = "机具类型")
    private String typeName;
    @ApiModelProperty(value = "机具类型")
    private String modelName;
    @ApiModelProperty(value = "机具状态")
    private String maStatus;

    @ApiModelProperty(value = "租赁日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rentTime;

    @ApiModelProperty(value = "租赁价格")
    private String rentPrice;

    @ApiModelProperty(value = "所属单位")
    private Integer unitId;

    @ApiModelProperty(value = "生产厂家")
    private String supplier;

    @ApiModelProperty(value = "出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date outFactoryTime;

    @ApiModelProperty(value = "是否新装备（0 是  1否）")
    private Integer isNew;

    @ApiModelProperty(value = "检验证编号")
    private String checkCode;

    @ApiModelProperty(value = "检验单位")
    private String checkUnit;

    @ApiModelProperty(value = "检验日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkDate;

    @ApiModelProperty(value = "下次检验日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date nextCheckDate;

    @ApiModelProperty(value = "机手姓名")
    private String maUserName;

    @ApiModelProperty(value = "关键字")
    private String keyWord;

    @ApiModelProperty(value = "状态（0 未接收  1已接收）")
    private Integer status;
    @ApiModelProperty(value = "数据来源（0新购 1盘点 2数据推送）")
    private Integer souceBy;

}
