cpT
2025-06-22 5026865596b57287aefc72acdc9938bc0d93dbec
src/main/java/com/zy/asrs/entity/BasRgvOpt.java
@@ -5,6 +5,10 @@
import com.baomidou.mybatisplus.annotations.TableField;
import java.text.SimpleDateFormat;
import java.util.Date;
import com.zy.core.enums.RgvTaskModeType;
import com.zy.core.model.command.RgvCommand;
import com.zy.core.model.protocol.RgvProtocol;
import org.springframework.format.annotation.DateTimeFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -27,7 +31,7 @@
     * ID
     */
    @ApiModelProperty(value= "ID")
    @TableId(value = "id", type = IdType.INPUT)
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
@@ -149,6 +153,45 @@
    private String memo;
    public BasRgvOpt() {}
    public BasRgvOpt(Integer taskNo,int rgvNo,int rgvPoi, RgvCommand command) {
        Date now = new Date();
        this.wrkNo1 = taskNo;
        this.rgvNo = rgvNo;
        this.sendTime = now;
        this.mode = command.getTaskModeTypeString();
        this.sourceRow = rgvPoi;//小车当前位置
        this.sourceSta = command.getSourceStaNo1().intValue();
        this.posSta = command.getDestinationStaNo1().intValue();
        this.updateTime = now;
        this.updateBy = 9999L;
        this.memo = "任务下发自动生成指令日志";
    }
    public BasRgvOpt(Integer taskNo,int rgvNo,int rgvPoi, Long command) {
        Date now = new Date();
        this.wrkNo1 = taskNo;
        this.rgvNo = rgvNo;
        this.sendTime = now;
        this.mode = "漫游";
        this.sourceRow = rgvPoi;//小车当前位置
        this.sourceSta = rgvPoi;
        this.posSta = command.intValue();
        this.updateTime = now;
        this.updateBy = 9999L;
        this.memo = "漫游任务触发";
    }
    public BasRgvOpt(Integer taskNo,int rgvNo,int rgvPoi) {
        Date now = new Date();
        this.wrkNo1 = taskNo;
        this.rgvNo = rgvNo;
        this.sendTime = now;
        this.mode = "任务取消";
        this.sourceRow = rgvPoi;//小车当前位置
        this.sourceSta = rgvPoi;
        this.posSta = 0;
        this.updateTime = now;
        this.updateBy = 9999L;
        this.memo = "任务取消";
    }
    public BasRgvOpt(Integer wrkNo1,Integer wrkNo2,Integer rgvNo,Date sendTime,String mode,Integer sourceRow,Integer sourceBay,Integer sourceLev,Integer sourceSta,Integer posRow,Integer posBay,Integer posLev,Integer posSta,Integer response,Date updateTime,Long updateBy,String memo) {
        this.wrkNo1 = wrkNo1;