AgvPort.java 2.68 KB
package com.huaheng.api.acs.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

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

/**
 * 【请填写功能名称】表 agv_port
 *
 * @author huaheng
 * @date 2022-07-27
 */
@TableName(value = "agv_port")
@Data
public class AgvPort implements Serializable {
    public static final int LOAD = 1;
    public static final int LAY = 2;
    public static final int PIN = 3;
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * agv点位编码
     */
    @TableField(value = "code")
    private String code;
    /**
     * agv点位名称
     */
    @TableField(value = "name")
    private String name;
    /**
     * 所属工位id
     */
    @TableField(value = "workStationId")
    private Long workStationId;
    /**
     * 托盘号
     */
    @TableField(value = "containerCode")
    private String containerCode;
    /**
     * 1上料口,2下料口
     */
    @TableField(value = "type")
    private Long type;
    /**
     * area
     */
    @TableField(value = "area")
    private String area;
    /**
     * lock,empty
     */
    @TableField(value = "status")
    private String status;
    /**
     * 创建时间
     */
    @TableField(value = "created", fill = FieldFill.INSERT)
    private Date created;

    /**
     * 创建用户
     */
    @TableField(value = "createdBy", fill = FieldFill.INSERT)
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "lastUpdated", fill = FieldFill.INSERT_UPDATE)
    private Date lastUpdated;

    /**
     * 更新用户
     */
    @TableField(value = "lastUpdatedBy", fill = FieldFill.INSERT_UPDATE)
    private String lastUpdatedBy;

    /**
     * 输送线的位置
     */
    @TableField(value = "linePort", fill = FieldFill.INSERT)
    private String linePort;

    /**
     * 0上下料口,1上料口,2下料口
     */
    @TableField(exist = false)
    private int types;

    //提示
    @TableField(exist = false)
    private String message;


    //表示任务完成时 是否写入数据 1表示写入0表示不写入 默认1
    @TableField(value = "userDef1")
    private Boolean userDef1;

    //表示是否需要通过wcs读取占位 1表示需要0表示不需要 默认0
    @TableField(value = "userDef2")
    private Boolean userDef2;


    /**
     * 是否上料口
     **/
    public boolean isLoadPort() {
        return type == LOAD;
    }

    /**
     * 是否下料口
     **/
    public boolean isLayPort() {
        return type == LAY;
    }
}