自动化立体仓库 - WMS系统
pang.jiabao
1 天以前 9aff2228c647b65bd2aa7aa9186445fb7b5d2219
src/main/java/com/zy/system/entity/SaasLog.java
@@ -6,6 +6,7 @@
import com.baomidou.mybatisplus.enums.IdType;
import com.core.common.Cools;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
@@ -15,6 +16,7 @@
@Data
@TableName("sys_saas_log")
@AllArgsConstructor
public class SaasLog implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -59,6 +61,39 @@
    private String batch;
    private Integer packageNo;
    /**
     * 主体
     */
    private String owner;
    /**
     * 车间
     */
    private String workshop;
    /**
     * 单据类型
     */
    @TableField("doc_type")
    private Long docType;
    @TableField("memo")
    private String memo;
    @TableField("memo2")
    private String memo2;
    // 是否分包,生产订单号为空则为分包 0.正常,1.分包
    @TableField("subcontracting")
    private Integer subcontracting;
    public String getSubcontracting$() {
        return Cools.isEmpty(this.subcontracting) ? ""
                : this.subcontracting == 0 ? "正常"
                : this.subcontracting == 1 ? "分包"
                : String.valueOf(this.subcontracting);
    }
    public SaasLog() {}
    public SaasLog(Long id,Integer type,String locNo,String matnr,Date ioTime,Long createBy) {
@@ -87,6 +122,9 @@
    }
    public String getType$(){
        if (this.type == null) {
            return "";
        }
        if (this.type ==0) {
            return "入库";
           } else if (this.type == 1) {
@@ -95,11 +133,16 @@
            return "库位移转";
        } else if (this.type == 3) {
            return "库存调整";
        }else {
        }else if (this.type == 4) {
            return "退货";
        } else {
            return "";
        }
    }
    public String getDocType$(){
        return "";
    }
}