/*
 * Author: wangjian
 * 生成entity
 */
package com.tofly.pojo.maintain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 抢维修耗材记录表
 *
 * @author admin
 * @date Tue Apr 06 00:00:00 CST 2021
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "TF_YWPN_REPAIRGOODS_W", resultMap = "repairgoodsMap")
@KeySequence("TF_YWPN_REPAIRGOODS_W")
@ApiModel
public class Repairgoods extends Model<Repairgoods> {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "ID", type = IdType.INPUT)
    @ApiModelProperty(value = "ID")
    private Long id;
    /**
     * 上传记录表ID，关联表TF_YWPN_REPAIRRECORD_W关键值
     */
    @ApiModelProperty(value = "上传记录表ID，关联表TF_YWPN_REPAIRRECORD_W关键值")
    private Long recordId;
    /**
     * 个人任务id，关联表TF_YWPN_REPAIRUSER_W
     */
    @ApiModelProperty(value = "个人任务id，关联表TF_YWPN_REPAIRUSER_W")
    private Long repairUserid;
    /**
     * 材料类型,关联表TF_YWPN_REPAIRMATERIAL_D关键值
     */
    @ApiModelProperty(value = "材料类型,关联表TF_YWPN_REPAIRMATERIAL_D关键值")
    private Long materialType;
    /**
     * 材质，字典编码表取，PE、金属等
     */
    @ApiModelProperty(value = "材质，字典编码表取，PE、金属等")
    private String material;
    /**
     * 口径（mm）
     */
    @ApiModelProperty(value = "口径（mm）")
    private String bore;
    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    private Long num;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(value = "CREATE_TIME", fill = FieldFill.INSERT)
    private Date createTime;
    /**
     * 创建用户ID
     */
    @ApiModelProperty(value = "创建用户ID")
    @TableField(value = "CREATE_USER", fill = FieldFill.INSERT)
    private Long createUser;
    @ApiModelProperty(hidden = true)
    private String createUserName;

}
