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_logicarea_vehiclemodel
 *
 * @author zjx
 * @date 2023-04-19
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("base_logicarea_derive")
public class BaseLogicAreaDerive implements Serializable
{
    private static final long serialVersionUID = 1L;

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

    /** 逻辑区域 */
    @Excel(name = "逻辑区域")
    private String logicareaNo;

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


    /** 逻辑区域ID */
    @Excel(name = "逻辑区域ID")
    private Long logicareaId;

    /** 派生ID */
    @Excel(name = "派生ID")
    private Long deriveId;

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

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /**
     * 创建时间
     */
    @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;
}
