fix:RGV任务下发异常任务时不需要校验

This commit is contained in:
zhouz
2025-07-23 14:22:24 +08:00
parent 99babf99ac
commit 20aecf5d73

View File

@@ -25,6 +25,7 @@ import org.springframework.util.CollectionUtils;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
/** /**
* 堆垛机点位至行架点位任务(出库) * 堆垛机点位至行架点位任务(出库)
@@ -113,6 +114,14 @@ public class TwoOutHeapTask extends AbstractAcsTask {
List<JSONObject> pointJson = wo_Task.query("handle_class = '" + THIS_CLASS + "' AND task_status IN ('05','06') AND is_delete = '0' ORDER BY point_code2") List<JSONObject> pointJson = wo_Task.query("handle_class = '" + THIS_CLASS + "' AND task_status IN ('05','06') AND is_delete = '0' ORDER BY point_code2")
.getResultJSONArray(0).toJavaList(JSONObject.class); .getResultJSONArray(0).toJavaList(JSONObject.class);
// 下发两个的任务
List<JSONObject> err_list = taskArrAll.stream()
.filter(row -> row.getString("point_code2").equals(IOSEnum.EXCEP_OUT.code("异常出库口")))
.collect(Collectors.toList());
if (ObjectUtil.isNotEmpty(err_list)) {
taskArr.addAll(err_list);
}
if (ObjectUtil.isEmpty(pointJson)) { if (ObjectUtil.isEmpty(pointJson)) {
// 下发两个的任务 // 下发两个的任务
JSONObject oneJson = taskArrAll.stream() JSONObject oneJson = taskArrAll.stream()