From 2992751c0522254a57ef4cb19dab333173408d82 Mon Sep 17 00:00:00 2001 From: LISHUAI <1793460677@qq.com> Date: Thu, 5 Sep 2024 20:06:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E6=8E=92=E5=88=97=E5=B1=82=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java index 3612f0e6c..15217c13e 100644 --- a/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java +++ b/acs2/nladmin-system/nlsso-server/src/main/java/org/nl/acs/task/service/impl/TaskServiceImpl.java @@ -1254,7 +1254,7 @@ public class TaskServiceImpl extends CommonServiceImpl impleme String to_z = null; //校验排列层为空 if (task.getTask_type().equals(TaskTypeEnum.AGV_Task.getIndex())){ - if (StrUtil.isEmpty(task.getTo_y()) || StrUtil.isEmpty(task.getTo_z())|| StrUtil.isEmpty(task.getFrom_y()) || StrUtil.isEmpty(task.getFrom_z())){ + if ((next_point_code.startsWith("L")&&(StrUtil.isEmpty(task.getTo_y()) || StrUtil.isEmpty(task.getTo_z()))) || (start_point_code.startsWith("L")&&(StrUtil.isEmpty(task.getFrom_y()) || StrUtil.isEmpty(task.getFrom_z())))){ throw new BadRequestException(LangProcess.msg("point_null")); }