|
|
|
@ -12,6 +12,7 @@ import com.yvan.logisticsModel.ExecutorItem; |
|
|
|
import com.yvan.logisticsModel.LogisticsRuntime; |
|
|
|
import com.yvan.logisticsModel.LogisticsRuntimeService; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.clever.core.Conv; |
|
|
|
import org.clever.core.id.SnowFlake; |
|
|
|
import org.clever.core.json.JsonWrapper; |
|
|
|
|
|
|
|
@ -39,6 +40,7 @@ public class PlanTaskSequence { |
|
|
|
public BasLocationVo unloadBasLocationVo; |
|
|
|
public BasLocationVo executorVo; |
|
|
|
public int carryQty; |
|
|
|
public Map<String, Object> option; |
|
|
|
|
|
|
|
public PlanTaskSequence(String executorId, LogisticsRuntime logisticsRuntime, RcsTaskBiz bizTask, String createBy) { |
|
|
|
this.executorId = executorId; |
|
|
|
@ -65,7 +67,7 @@ public class PlanTaskSequence { |
|
|
|
return planTask; |
|
|
|
} |
|
|
|
|
|
|
|
public ExecutorItem getAgv(){ |
|
|
|
public ExecutorItem getAgv() { |
|
|
|
return this.logisticsRuntime.executorItemMap.get(this.executorId); |
|
|
|
} |
|
|
|
|
|
|
|
@ -209,6 +211,20 @@ public class PlanTaskSequence { |
|
|
|
return this.taskList.size(); |
|
|
|
} |
|
|
|
|
|
|
|
public float getLoadHeight() { |
|
|
|
if (this.option == null || this.option.get("loadHeight") == null) { |
|
|
|
return 0f; |
|
|
|
} |
|
|
|
return Conv.asFloat(this.option.get("loadHeight")); |
|
|
|
} |
|
|
|
|
|
|
|
public float getUnloadHeight() { |
|
|
|
if (this.option == null || this.option.get("unloadHeight") == null) { |
|
|
|
return 0f; |
|
|
|
} |
|
|
|
return Conv.asFloat(this.option.get("unloadHeight")); |
|
|
|
} |
|
|
|
|
|
|
|
public int completedCount() { |
|
|
|
int count = 0; |
|
|
|
for (RcsTaskPlan task : taskList) { |
|
|
|
|