#
1
1 天以前 d62951d7c0947303fc6eed23a664c162f2ea0010
src/main/java/com/zy/asrs/entity/BasAgvMast.java
@@ -5,6 +5,10 @@
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;
@@ -29,7 +33,7 @@
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "task_no", type = IdType.AUTO)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
@@ -43,7 +47,14 @@
     * 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();
    }
    /**
     * 源站点
@@ -134,11 +145,28 @@
    @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;