package com.shkj.wms.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shkj.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

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

/**
 * 磨具对象 base_mold
 *
 * @author lch
 * @date 2023-06-01
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("base_mold")
public class BaseMold implements Serializable {

private static final long serialVersionUID=1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "${comment}", width = 15 )
    private Long id;


    /**
     * 磨具编号
     */
    @Excel(name = "模具编号", width = 20)
    private String moldNo;


    /**
     * * 模具名称
     */
    @Excel(name = "模具名称", width = 20)
    private String moldName;


    /**
     * 类型
     */
    @Excel(name = "类型", width = 20)
    private String type;


    /**
     * 型号
     */
    @Excel(name = "型号", width = 20)
    private String model;


    /**
     * 长
     */
    @Excel(name = "长", width = 20)
    private BigDecimal length;


    /**
     * 宽
     */
    @Excel(name = "宽", width = 20)
    private BigDecimal width;


    /**
     * 高
     */
    @Excel(name = "高", width = 20)
    private BigDecimal height;


    /**
     * 体积
     */
    @Excel(name = "体积", width = 20)
    private BigDecimal volume;

    /**
     * 重量
     */
    private Double weight;

    /**
     * 保养周期（月）
     */
    @Excel(name = "保养周期", width = 15 )
    private BigDecimal serviceInterval;


    /**
     * 使用寿命（月）
     */
    @Excel(name = "使用寿命", width = 15 )
    private BigDecimal serviceLife;


    /**
     * 删除状态
     */
    @Excel(name = "删除状态", width = 20)
    private String isDel;


    /**
     * 模具状态
     */
    @Excel(name = "模具状态", width = 20)
    private String isActivity;


    /**
     * 仓库ID
     */
    @Excel(name = "仓库ID", width = 20)
    private Long branchId;

    /**
     * 条形码内容
     */
    private String  barCode;

    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "${comment}", width = 15 )
    private String updateBy;


    /**
     * $column.columnComment
     */
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "${comment}", width = 15 )
    private String createBy;


    /**
     * 修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date updateTime;


    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+7")
    private Date createTime;


}
