package com.shkj.wms.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.shkj.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

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

/**
 * 派生保险杠关系对象 base_derive
 *
 * @author zjx
 * @date 2023-04-13
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("base_derive")
public class BaseDerive implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /**
     * 派生
     */
    @Excel(name = "派生")
    private String derive;

    /**
     * 车型代码
     */
    @Excel(name = "车型代码")
    private String vehicheCode;

    /**
     * 车型
     */
    @Excel(name = "车型")
    private String vehicheModel;

    /**
     * 前杠代码
     */
    @Excel(name = "前杠代码")
    private String frontLocation;

    /**
     * 前杠是否分体
     */
    @Excel(name = "前杠是否分体")
    private String frontSplit;

    /**
     * 后杠代码
     */
    @Excel(name = "后杠代码")
    private String rearLocation;

    /**
     * 后杠是否分体
     */
    @Excel(name = "后杠是否分体")
    private String rearSplit;

    /**
     * 前杠是否冲孔
     */
    @Excel(name = "前杠是否冲孔")
    private String frontPunching;

    /**
     * 后杠是否冲孔
     */
    @Excel(name = "后杠是否冲孔")
    private String rearPunching;

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


    /** 颜色*/
    @Excel(name = "颜色")
    private String color;

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


    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "创建人", width = 20)
    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_UPDATE)
    @Excel(name = "修改人", width = 20)
    private String updateBy;
}
