From 7b810cbddb65858da8d8dea1e4fce6144a8ab154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B?= <1063331231@qq.com> Date: Thu, 12 Jun 2025 19:04:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=97=B6=E8=A7=A3=E5=86=B3=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E6=B7=BB=E5=8A=A0=E6=BA=B6=E6=B6=B2=E5=AE=B9=E5=99=A8?= =?UTF-8?q?id=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/sgs/app/cmd/control/LiquidAddCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/iflytop/sgs/app/cmd/control/LiquidAddCommand.java b/src/main/java/com/iflytop/sgs/app/cmd/control/LiquidAddCommand.java index ba6543d..17b4967 100644 --- a/src/main/java/com/iflytop/sgs/app/cmd/control/LiquidAddCommand.java +++ b/src/main/java/com/iflytop/sgs/app/cmd/control/LiquidAddCommand.java @@ -56,9 +56,11 @@ public class LiquidAddCommand extends BaseCommandHandler { Point3D feedAreaTrayPoint3D = devicePositionService.getPosition(DevicePositionCode.feedAreaTrayPoint).getPoint3D();//获取上料区托盘夹爪位置点 Double transferModuleXPickTrayMoveDistance = devicePositionService.getPosition(DevicePositionCode.transferModuleXPickTrayMoveDistance).getDistance();//获取转运模块X轴拿取托盘进出卡槽移动距离 JSONArray jsonArray = cmdDTO.getJSONArrayParam("columns");//获取参数 + //todo 容器id为空 Integer containerId = cmdDTO.getIntegerParam("containerId");//溶液ID double volume = cmdDTO.getDoubleParam("volume");//量 - Container container = containerService.getById(containerId); + //Container container = containerService.getById(containerId); + Container container = containerService.getById(1); Solutions solutions = solutionsService.getById(container.getSolutionId());//获取溶液 Assert.isTrue(!jsonArray.isEmpty(), () -> new AppException(ResultCode.INVALID_PARAMETER));//确定选中了列 deviceStateService.getCommandMutexState().get().setTransferCommandExecuting(true);