Station.java 2.66 KB
package com.huaheng.mobilewms.bean;


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

/**
 * Created by Enzo Cotter on 2019/10/11.
 */

public class Station implements Serializable {
    private Integer id;

    /**
     * 名称
     */
    private String name;

    /**
     * 编码
     */
    private String code;

    /**
     * 类型
     */
    private String type;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 区域
     */
    private Integer area;

    /**
     * 仓库编码
     */
    private String warehouseCode;

    /**
     * 创建时间
     */
    private Date created;

    /**
     * 创建者
     */
    private String createdBy;

    /**
     * 更新时间
     */
    private Date lastUpdated;

    /**
     * 更新者
     */
    private String lastUpdatedBy;

    private static final long serialVersionUID = 1L;

    private boolean isOut() {
        return "1".equals(type);
    }

    private boolean isIn() {
        return "2".equals(type);
    }

    private boolean isInOut() {
        return "3".equals(type);
    }


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getArea() {
        return area;
    }

    public void setArea(Integer area) {
        this.area = area;
    }

    public String getWarehouseCode() {
        return warehouseCode;
    }

    public void setWarehouseCode(String warehouseCode) {
        this.warehouseCode = warehouseCode;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getLastUpdated() {
        return lastUpdated;
    }

    public void setLastUpdated(Date lastUpdated) {
        this.lastUpdated = lastUpdated;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }
}