自动化立体仓库 - WMS系统
pang.jiabao
2024-09-03 587fee18e22ed0ceee502ca12025a40e9d63989f
src/main/java/com/zy/asrs/entity/WrkMastStaLog.java
@@ -5,6 +5,8 @@
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.zy.common.utils.Synchro;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -174,5 +176,89 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.bignTime);
    }
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
    public Integer getStaEnd(Integer souSta) {
        switch (souSta) {
            case 100:
            case 103:
            case 106:
            case 109:
            case 112:
            case 115:
                return souSta + 1;
            default:
                return souSta;
        }
    }
    public String getType$() {
        if (Cools.isEmpty(this.type)) {
            return "未知";
        }
        switch (this.type) {
            case 1:
                return "非空";
            case 2:
                return "空板";
            default:
                return "未知";
        }
    }
    /**
     * 工作状态 0:初始 1:等待小车取 2:等待小车放 3:完成
     */
    public String getWrkSts$() {
        if (Cools.isEmpty(this.wrkSts)) {
            try {
                if (this.wrkSts==0){
                    return "初始";
                }
            }catch (Exception e){
                return "未知";
            }
            return "未知";
        }
        switch (this.wrkSts) {
            case 0:
                return "初始";
            case 1:
                return "等待小车取";
            case 2:
                return "等待小车放";
            case 3:
                return "完成";
            default:
                return "未知";
        }
    }
    /**
     * 工作类型 1:取(叠盘)  2:拆盘  3:取放 5:满取  6:满放
     */
    public String getWrkType$() {
        if (Cools.isEmpty(this.wrkType)) {
            return "未知";
        }
        switch (this.wrkType) {
            case 1:
                return "叠盘";
            case 2:
                return "拆盘";
            case 3:
                return "取放";
            case 4:
                return "行走";
            case 5:
                return "满取";
            case 6:
                return "满放";
            default:
                return "未知";
        }
    }
}