package com.shkj.wcs.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 java.io.Serializable;
import java.util.Date;

/**
 * 点位管理对象 base_point
 *
 * @author zjx
 * @date 2023-04-20
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("base_point")
public class BasePoint implements Serializable
{
    private static final long serialVersionUID = 1L;

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

    /** 点位编号 */
    @Excel(name = "点位编号")
    private String pointNo;

    /** 点位名称 */
    @Excel(name = "点位名称")
    private String pointName;

    /** 所属分组 */
    @Excel(name = "所属分组")
    private Long pointGroup;

    /** 所属巷道 */
    @Excel(name = "所属巷道")
    private String tunnel;

    /** 是否可用 */
    @Excel(name = "是否可用")
    private String isActive;

    /** 是否占用 */
    @Excel(name = "是否占用")
    private String isOccupy;

    /** 异常描述 */
    @Excel(name = "异常描述")
    private String errDesc;

    /** 异常状态 */
    @Excel(name = "异常状态")
    private String errStatus;

    /** 关联设备 */
    @Excel(name = "关联设备")
    private String devCode;

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

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