PlcEquipment.java 1.55 KB
package com.huaheng.pc.plc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

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

/**
 * @author:zhouhong
 * 一台plc对应多个db块,一个db块对应多个偏移量
 * 202203
 */
@Data
@TableName(value = "plc_equipment")
public class PlcEquipment implements Serializable {
    /**
     * ID
     */
     @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备名称
     */
    @TableField(value = "equipmentName")
    private String equipmentName;

    /**
     * 设备ip
     */
    @TableField(value = "equipmentIp")
    private String equipmentIp;

    /**
     * 端口号
     */
    @TableField(value = "port")
    private Integer port;


    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")
    private Date updateTime;

    /**
     * 创建者
     */
    @TableField(value = "createBy")
    private String createBy;



    /**
     * 状态1启用2停用
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 修改人
     */
    @TableField(value = "updateBy")
    private String updateBy;

    /**
     * 排序
     */
    @TableField(value = "orders")
    private Integer orders;



    private static final long serialVersionUID = 1L;
}