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-05-20 15:06:43
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerEquipment对象", description = "塔吊设备管理")
public class TowerEquipment implements Serializable {
    private static final long serialVersionUID = 1L;

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

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

    @ApiModelProperty(value = "设备型号")
    private String model;

    @ApiModelProperty(value = "设备编号")
    private String equipmentNo;

    @ApiModelProperty(value = "出厂编号")
    private String factoryNo;

    @ApiModelProperty(value = "出厂日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date factoryDate;

    @ApiModelProperty(value = "制造厂商")
    private String manufactor;

    @ApiModelProperty(value = "使用年限")
    private String lifeYear;

    @ApiModelProperty(value = "报废日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date scrapDate;

    @ApiModelProperty(value = "备案编号")
    private String filingNo;

    @ApiModelProperty(value = "机号")
    private String machineNo;

    @ApiModelProperty(value = "备案许可证号")
    private String licenceNo;

    @ApiModelProperty(value = "产权单位")
    private String company;

    @ApiModelProperty(value = "所属部门")
    private String organization;

    @ApiModelProperty(value = "所属仓库")
    private String warehouse;

    @ApiModelProperty(value = "设备来源")
    private String source;

    @ApiModelProperty(value = "采购日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date buyDate;

    @ApiModelProperty(value = "当前位置")
      private String currentLocation;

    @ApiModelProperty(value = "设计高度")
    private String designHeight;

    @ApiModelProperty(value = "独立高度")
    private String height;

    @ApiModelProperty(value = "额定载重")
    private String ratedLoad;

    @ApiModelProperty(value = "最大幅度处额定载重")
    private String maxRatedLoad;

    @ApiModelProperty(value = "最大起升高度")
    private String maxLiftingHeight;

    @ApiModelProperty(value = "臂长")
    private String armLength;

    @ApiModelProperty(value = "附件1")
    private String file1;

    @ApiModelProperty(value = "附件2")
    private String file2;

    @ApiModelProperty(value = "附件3")
    private String file3;

    @ApiModelProperty(value = "附件4")
    private String file4;

    @ApiModelProperty(value = "附件5")
    private String file5;

    @ApiModelProperty(value = "附件6")
    private String file6;

    @ApiModelProperty(value = "附件7")
    private String file7;

    @ApiModelProperty(value = "当前位置")
    private String address;

    @ApiModelProperty(value = "是否外协标识")
    @TableField(exist = false)
    private Boolean isOutOrg;

    @ApiModelProperty(value = "所属人员")
    private String users;

    @ApiModelProperty(value = "状态, 0待发布, 1已发布")
    private Integer status;

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

    @ApiModelProperty(value = "所有人")
    private Integer userId;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    private Integer sortNumber;

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

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

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

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

}
