fix : 排列层校验

This commit is contained in:
2024-09-05 20:06:51 +08:00
parent d65263b620
commit 2992751c05

View File

@@ -1254,7 +1254,7 @@ public class TaskServiceImpl extends CommonServiceImpl<TaskMapper, Task> 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"));
}