| | |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.core.common.SnowflakeIdWorker; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | | 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; |
| | | |
| | | /** |
| | |
| | | * RGV任务号 |
| | | */ |
| | | @ApiModelProperty(value= "RGV任务号") |
| | | @JsonSerialize(using = ToStringSerializer.class) |
| | | private Long timestamp; |
| | | @TableField(exist = false) |
| | | private String timestampStr; |
| | | |
| | | public String getTimestampStr() { |
| | | return timestamp == null ? "" : timestamp.toString(); |
| | | } |
| | | |
| | | /** |
| | | * 源站点 |
| | |
| | | @TableField("devp_id") |
| | | private Integer devpId; |
| | | |
| | | /** |
| | | * barcode |
| | | */ |
| | | @ApiModelProperty(value= "barcode") |
| | | private String barcode; |
| | | |
| | | @ApiModelProperty(value= "任务类型") |
| | | @TableField("io_type") |
| | | private Integer ioType; |
| | | private Integer ioType;//AGV库位==》输送线站点 0 AGV库位==》AGV库位 1 输送线站点==》AGV库位 2 输送线站点==》输送线站点 3 |
| | | |
| | | public BasAgvMast() {} |
| | | public BasAgvMast() { |
| | | SnowflakeIdWorker snowflakeIdWorker = SpringUtils.getBean(SnowflakeIdWorker.class); |
| | | this.timestamp = snowflakeIdWorker.nextId(); |
| | | this.barcode = String.valueOf(snowflakeIdWorker.nextId()); |
| | | |
| | | this.priority = 1L; |
| | | this.status = 0; |
| | | |
| | | Date now = new Date(); |
| | | this.appeTime = now; |
| | | this.modiTime = now; |
| | | } |
| | | |
| | | 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; |