| package com.zy.asrs.entity; | 
|   | 
| import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId; | 
| import com.baomidou.mybatisplus.enums.IdType; | 
| import com.baomidou.mybatisplus.annotations.TableField; | 
|   | 
| import io.swagger.annotations.ApiModelProperty; | 
| import lombok.Data; | 
| import com.baomidou.mybatisplus.annotations.TableName; | 
| import java.io.Serializable; | 
|   | 
| @Data | 
| @TableName("asr_bas_arm") | 
| public class BasArm implements Serializable { | 
|   | 
|     private static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * ID | 
|      */ | 
|     @ApiModelProperty(value= "ID") | 
|     private Long id; | 
|   | 
|     /** | 
|      * 机械臂编号 | 
|      */ | 
|     @ApiModelProperty(value= "机械臂编号") | 
|     @TableId(value = "arm_no", type = IdType.INPUT) | 
|     @TableField("arm_no") | 
|     private Integer armNo; | 
|   | 
|     /** | 
|      * 码垛位 | 
|      */ | 
|     @ApiModelProperty(value= "码垛位") | 
|     @TableId(value = "sta_no", type = IdType.INPUT) | 
|     @TableField("sta_no") | 
|     private Integer staNo; | 
|   | 
|     /** | 
|      * 拆垛位 | 
|      */ | 
|     @ApiModelProperty(value= "拆垛位") | 
|     @TableId(value = "sorting_line", type = IdType.INPUT) | 
|     @TableField("sorting_line") | 
|     private Integer sortingLine; | 
|   | 
|     @ApiModelProperty(value= "") | 
|     private Integer status; | 
|   | 
|     /** | 
|      * 拆垛位 | 
|      */ | 
|     @ApiModelProperty(value= "拆垛位") | 
|     @TableField("sorting_line_sou") | 
|     private Integer sortingLineSou; | 
|   | 
|     /** | 
|      * 码垛位 | 
|      */ | 
|     @ApiModelProperty(value= "码垛位") | 
|     @TableField("sta_no_sou") | 
|     private Integer staNoSou; | 
|   | 
|     @ApiModelProperty(value= "输送PLCId") | 
|     @TableField("devp_id") | 
|     private Integer devpId; | 
|   | 
|     public BasArm() {} | 
|   | 
|     public BasArm(Integer armNo,Integer staNo,Integer sortingLine,Integer status) { | 
|         this.armNo = armNo; | 
|         this.staNo = staNo; | 
|         this.sortingLine = sortingLine; | 
|         this.status = status; | 
|     } | 
|   | 
| //    BasArm basArm = new BasArm( | 
| //            null,    // 机械臂编号[非空] | 
| //            null,    // 码垛位[非空] | 
| //            null,    // 拆垛位[非空] | 
| //            null    // [非空] | 
| //    ); | 
|   | 
|   | 
|     public String getStatus$() { | 
|         switch (status){ | 
|             case 1: | 
|                 return "正常"; | 
|             case 2: | 
|                 return "关闭"; | 
|             default: | 
|                 return "异常"; | 
|         } | 
|     } | 
|   | 
|     public String getDevpId$() { | 
|         if (devpId == null){return "未知";} | 
|         switch (devpId) { | 
|             case 1: | 
|                 return "1楼"; | 
|             case 2: | 
|                 return "2楼"; | 
|             default: | 
|                 return "未知"; | 
|         } | 
|     } | 
| } |