package com.gxwebsoft.tower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * 合同签订设备清单
 *
 * @author 科技小王子
 * @since 2023-06-07 18:48:56
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerProjectOrder对象", description = "合同签订设备清单")
public class TowerProjectOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "自增ID")
    @TableId(value = "project_order_id", type = IdType.AUTO)
    private Integer projectOrderId;

    @ApiModelProperty(value = "key")
    @TableField(exist = false)
    private String key;

    @ApiModelProperty(value = "项目ID")
    private Integer projectId;

    @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "规格型号")
    private String equipmentModel;

    @ApiModelProperty(value = "签订数量")
    private Integer equipmentNum;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "预计进场时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "预计退场时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    @ApiModelProperty(value = "出厂年限")
    private String year;

    @ApiModelProperty(value = "对应资料员")
    private String documenter;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "排序号")
    private Integer sortNumber;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

}
