*
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;
@@ -92,6 +94,20 @@
        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){