package org.jeecg.modules.tool.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
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")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_tool对象", description="工器具基础信息")
public class Tool 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 HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @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 HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "updateTime")
    private java.util.Date updateTime;
	/**工具类型*/
	@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 model;
	/**是否需要检定*/
	@Excel(name = "是否需要检定", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否需要检定")
    private java.lang.String checkRequire;
	/**检定周期(天)*/
	@Excel(name = "检定周期(天)", width = 15)
    @ApiModelProperty(value = "检定周期(天)")
    private java.lang.Integer checkCycle;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private java.lang.String name;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "tool_status")
//	@Dict(dicCode = "tool_status")
    @ApiModelProperty(value = "状态")
    private java.lang.Integer status;
	/**计量单位*/
	@Excel(name = "计量单位", width = 15, dicCode = "general_unit")
	@Dict(dicCode = "general_unit")
    @ApiModelProperty(value = "计量单位")
    private java.lang.Integer unit;

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