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;

/**
 * PLC连接信息维护对象 wcs_plc_connect
 *
 * @author zjx
 * @date 2023-04-21
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("wcs_plc_connect")
public class WcsPlcConnect  implements Serializable
{
    private static final long serialVersionUID = 1L;

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

    /** 连接名称 */
    @Excel(name = "连接名称")
    private String connectName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    private Long devCode;

    /** 厂家 */
    @Excel(name = "厂家")
    private String plcFactory;

    /** 型号 */
    @Excel(name = "型号")
    private String plcType;

    /** 连接IP */
    @Excel(name = "连接IP")
    private String plcIp;

    /** 端口号 */
    @Excel(name = "端口号")
    private Integer port;

    /** 站号 */
    @Excel(name = "站号")
    private String plcProtocol;

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


    /** 复位点位 */
    @Excel(name = "复位点位")
    private String resetPoint;

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



    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    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+8")
    private Date updateTime;


    /**
     * 修改人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Excel(name = "修改人", width = 20)
    private String updateBy;

    private String pointTables;

}
