| | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | |
| | | * ID |
| | | */ |
| | | @ApiModelProperty(value= "ID") |
| | | @TableId(value = "task_no", type = IdType.AUTO) |
| | | @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | |
| | | /** |
| | | * 状态 0: 初始 1: 作业中 2: 完成 |
| | | */ |
| | | @ApiModelProperty(value= "状态 0: 初始 1: 作业中 2: 完成 ") |
| | | @ApiModelProperty(value= "状态 0: 初始 1: 作业中 2: 完成 3: 转历史") |
| | | private Integer status; |
| | | |
| | | /** |
| | |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | |
| | | public BasAgvMast() {} |
| | | public BasAgvMast() { |
| | | SnowflakeIdWorker snowflakeIdWorker = SpringUtils.getBean(SnowflakeIdWorker.class); |
| | | this.timestamp = snowflakeIdWorker.nextId(); |
| | | } |
| | | |
| | | public BasAgvMast(Integer taskNo,Long timestamp,Integer sourceStaNo,Integer staNo,String sourceLocNo,String locNo,Long priority,Integer floorNo,Integer status,Date errorTime,String errorMemo,Date appeTime,Date modiTime,String modiUser) { |
| | | this.taskNo = taskNo; |
| | |
| | | return "作业中"; |
| | | case 2: |
| | | return "完成"; |
| | | case 3: |
| | | return "转历史"; |
| | | default: |
| | | return String.valueOf(this.status); |
| | | } |