*
lsh
2 天以前 3ba44e1a566074a38779c918da391b5c6264a381
src/main/java/com/zy/asrs/entity/param/TaskCreateParam.java
@@ -1,5 +1,7 @@
package com.zy.asrs.entity.param;
import com.zy.asrs.entity.LocMast;
import com.zy.core.model.CrnSlave;
import io.swagger.models.auth.In;
import lombok.Data;
@@ -14,12 +16,14 @@
    //起点
    private String startPoint;
    private Integer startPointSta;
    //优先级
    private Integer taskPriority;
    //终点
    private String targetPoint;
    private Integer targetPointSta;
    //是否空托盘            Y:是 N:否
    private String emptyContainer;
@@ -77,6 +81,33 @@
        this.crn = crn;
    };
    public TaskCreateParam(CarryParam param, Integer crn,Integer crnSta){
        this.taskNo = param.getTaskNo();
        this.ioType = param.getIoType();
        this.barcode = param.getBarcode();
        this.taskPriority = param.getTaskPriority();
        this.startPoint = param.getStartPoint();
        this.targetPoint = param.getTargetPoint();
        this.emptyContainer = "N";
        this.crn = crn;
        this.startPointSta = crnSta;
        this.targetPointSta = crnSta;
    };
    public TaskCreateParam(CrnSlave crnSlave, LocMast locMast){
        this.taskNo = locMast.getLocNo() + "-" + crnSlave.getId();
        this.ioType = 4;
        this.barcode = locMast.getBarcode();
        this.taskPriority = 1;
        this.startPoint = locMast.getLocNo();
        this.startPointSta = crnSlave.getCrnOutStn().get(0).getStaNo();
        this.targetPoint = locMast.getLocNo();
        this.targetPointSta = crnSlave.getCrnInStn().get(0).getStaNo();
        this.emptyContainer = "N";
        this.crn = locMast.getCrnNo();
        this.memo = "演示任务";
    };
    public static Integer convertParamIoType(String paramIoType){
        switch (paramIoType){