| | |
| | | import com.baomidou.mybatisplus.annotations.TableName; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.common.utils.Synchro; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import com.core.common.Cools; |
| | |
| | | |
| | | |
| | | /** |
| | | * 徐工汉云拆垛标记 0: 未拆 1: 已拆 2:已处理可下一步(转历史档) |
| | | * 徐工汉云拆垛标记 0: 初始 1、未拆已上报 2: 已拆 3:已处理可下一步(转历史档) |
| | | */ |
| | | @ApiModelProperty(value= "") |
| | | @TableField("sheet_no") |
| | |
| | | @TableField("take_none") |
| | | private String takeNone; |
| | | |
| | | /** |
| | | * 伴生工作号 |
| | | */ |
| | | @ApiModelProperty(value= "伴生工作号") |
| | | @TableField("work_no_other") |
| | | private Integer workNoOther; |
| | | |
| | | public WrkMast() {} |
| | | |
| | | public String getYmd$(){ |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime); |
| | | } |
| | | |
| | | public String getSheetNo$(){ |
| | | if (null == this.sheetNo){ return "未知"; } |
| | | switch (this.sheetNo){ |
| | | case "0": |
| | | return "默认"; |
| | | case "1": |
| | | return "机械臂抓取中"; |
| | | case "2": |
| | | return "完成"; |
| | | // return "抓取完成"; |
| | | case "3": |
| | | return "任务完成"; |
| | | case "4": |
| | | return "机械臂抓取中"; |
| | | case "5": |
| | | return "码垛完成"; |
| | | default: |
| | | return this.sheetNo; |
| | | } |
| | | } |
| | | |
| | | public void sync(Object source) { |
| | | Synchro.Copy(source, this); |
| | | } |
| | | |
| | | |
| | | public Integer getStaNoSign(){ |
| | | if (this.staNo == null){ |
| | | return 0; |
| | | } else { |
| | | switch (this.staNo){ |
| | | case 310: |
| | | return 1; |
| | | case 312: |
| | | return 2; |
| | | case 126: |
| | | return 1; |
| | | case 131: |
| | | return 2; |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public boolean booleanStaNoSign(){ |
| | | if (this.staNo == null){ |
| | | return false; |
| | | } else { |
| | | switch (this.staNo){ |
| | | case 310: |
| | | case 312: |
| | | case 126: |
| | | case 131: |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public Integer getStaNoBying(){ |
| | | if (this.staNo == null){ |
| | | return 0; |
| | | } else { |
| | | switch (this.staNo){ |
| | | case 310: |
| | | case 312: |
| | | return 212; |
| | | case 126: |
| | | case 131: |
| | | return 119; |
| | | } |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | public boolean booleanStaNoSignOther(){ |
| | | if (this.staNo == null){ |
| | | return true; |
| | | } else { |
| | | switch (this.staNo){ |
| | | case 144: |
| | | case 145: |
| | | case 152: |
| | | case 153: |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |