package org.jeecg.modules.toolSheet.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 工器具台账
 * @Author: jeecg-boot
 * @Date:   2025-01-15
 * @Version: V1.0
 */
@Data
@TableName("bu_tool_sheet")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_tool_sheet对象", description="工器具台账")
public class ToolSheet implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private java.lang.String id;
	/**createDept*/
	@Excel(name = "createDept", width = 15)
    @ApiModelProperty(value = "createDept")
    private java.lang.String createDept;
	/**createBy*/
    @ApiModelProperty(value = "createBy")
    private java.lang.String createBy;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private java.util.Date createTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
    private java.lang.String updateBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "updateTime")
    private java.util.Date updateTime;
	/**工具编码*/
	@Excel(name = "工具编码", width = 15)
    @ApiModelProperty(value = "工具编码")
    private java.lang.String code;
	/**工具类型*/
	@Excel(name = "工具类型", width = 15, dicCode = "tool_type")
	@Dict(dicCode = "tool_type")
    @ApiModelProperty(value = "工具类型")
    private java.lang.Integer type;
	/**品牌*/
	@Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private java.lang.String brand;
	/**型号*/
	@Excel(name = "型号", width = 15)
    @ApiModelProperty(value = "型号")
    private java.lang.String model;
	/**上次检定日期*/
	@Excel(name = "上次检定日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "上次检定日期")
    private java.util.Date lastCheckDate;
	/**所属工具柜*/
	@Excel(name = "所属工具柜", width = 15, dictTable = "bu_cabinet", dicText = "name", dicCode = "id")
	@Dict(dictTable = "bu_cabinet", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "所属工具柜")
    private java.lang.String cabinet;
	/**供应商*/
	@Excel(name = "供应商", width = 15)
    @ApiModelProperty(value = "供应商")
    private java.lang.String vendor;
	/**采购日期*/
	@Excel(name = "采购日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "采购日期")
    private java.util.Date purchaseDate;
	/**纬度*/
	@Excel(name = "纬度", width = 15)
    @ApiModelProperty(value = "纬度")
    private java.math.BigDecimal latitude;
	/**经度*/
	@Excel(name = "经度", width = 15)
    @ApiModelProperty(value = "经度")
    private java.math.BigDecimal longitude;
	/**上次定位时间*/
	@Excel(name = "上次定位时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "上次定位时间")
    private java.util.Date lastLocalTime;
	/**状态*/
	@Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "tool_status")
    private java.lang.Integer status;
	/**数量*/
	@Excel(name = "数量", width = 15)
    @ApiModelProperty(value = "数量")
    private java.lang.Integer num;
	/**MAC地址*/
	@Excel(name = "MAC地址", width = 15)
    @ApiModelProperty(value = "MAC地址")
    private java.lang.String mac;
	/**工具*/
    @Excel(name = "工具", width = 15, dictTable = "v_bu_tool", dicText = "name", dicCode = "id")
    @Dict(dictTable = "v_bu_tool", dicText = "name", dicCode = "id")
    @ApiModelProperty(value = "工具")
    private java.lang.String toolId;

    @TableField(exist = false)
    @Excel(name = "是否需要检定", width = 15, dicCode = "yn")
    @Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否需要检定")
    private String checkRequire;

    @TableField(exist = false)
    private Integer stockWarning;

    private String rfid;
    //虚拟库标志位1代表在虚拟库，0代表不在虚拟库
    private String inVirtual;
}
