package org.jeecg.modules.toolBorrowingRecord.entity;

import java.io.Serializable;

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_borrowing_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_tool_borrowing_record对象", description="工器具借用记录")
public class ToolBorrowingRecord 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, dictTable = "bu_tool_sheet", dicText = "code", dicCode = "id")
	@Dict(dictTable = "bu_tool_sheet", dicText = "code", dicCode = "id")
    @ApiModelProperty(value = "工具编号")
    private java.lang.String toolId;

    @Excel(name = "工具", width = 15)
    @ApiModelProperty(value = "工具名称")
    @TableField(exist = false)
    private java.lang.String toolName;
	/**借用人*/
	@Excel(name = "借用人", width = 15)
    @ApiModelProperty(value = "借用人")
    private java.lang.String borrower;
	/**借用时间*/
	@Excel(name = "借用时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "借用时间")
    private java.util.Date borrowTime;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "borrow_status")
    @Dict(dicCode = "borrow_status")
    @ApiModelProperty(value = "状态")
    private java.lang.Integer status;
	/**归还时间*/
	@Excel(name = "归还时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "归还时间")
    private java.util.Date returnTime;
	/**工单*/
	@Excel(name = "工单", width = 15)
    @ApiModelProperty(value = "工单")
    private java.lang.String workOrder;
	/**借用数量*/
	@Excel(name = "借用数量", width = 15)
    @ApiModelProperty(value = "借用数量")
    private java.lang.Integer count;
    @TableField(exist = false)
    private String toolTypeId;
    @TableField(exist = false)
    private Integer outType;
}
