package com.gxwebsoft.tower.entity;

import com.baomidou.mybatisplus.annotation.IdType;
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.math.BigDecimal;
import java.util.Date;

/**
 * 配件管理
 *
 * @author 科技小王子
 * @since 2023-05-22 11:53:48
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "TowerAccessory对象", description = "配件管理")
public class TowerAccessory implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "配件名称")
    private String accessoryName;

    @ApiModelProperty(value = "配件编号")
    private String accessoryNo;

    @ApiModelProperty(value = "配件分类")
    private String accessoryCategory;

    @ApiModelProperty(value = "适用设备型号")
    private String accessoryModel;

    @ApiModelProperty(value = "适用设备型号(多选)")
    private String accessoryModelMultiple;

    @ApiModelProperty(value = "配件规格")
    private String accessorySpecs;

    @ApiModelProperty(value = "单价")
    private BigDecimal accessoryPrice;

    @ApiModelProperty(value = "配件单位")
    private String accessoryUnit;

    @ApiModelProperty(value = "重量")
    private String accessoryWeight;

    @ApiModelProperty(value = "库存总量")
    private Integer accessoryStock;

    @ApiModelProperty(value = "产权单位名称")
    private String companyName;

    @ApiModelProperty(value = "产权单位编号")
    private String companyNo;

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

    @ApiModelProperty(value = "制造厂商编号")
    private String manufactorNo;

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

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

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

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

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

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

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

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

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

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

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

}
