From aa72d9f30a83353a52d5b32be0a466b8613b1b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Thu, 15 May 2025 19:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=B0=E5=9C=BA=E4=BB=A3=E7=A0=81=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/gd/app/cmd/MoveToHeatAreaCommand.java | 4 ++-- src/main/java/com/iflytop/gd/app/cmd/MoveToSolutionAreaCommand.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/iflytop/gd/app/cmd/MoveToHeatAreaCommand.java b/src/main/java/com/iflytop/gd/app/cmd/MoveToHeatAreaCommand.java index 0cc4740..ade79e5 100644 --- a/src/main/java/com/iflytop/gd/app/cmd/MoveToHeatAreaCommand.java +++ b/src/main/java/com/iflytop/gd/app/cmd/MoveToHeatAreaCommand.java @@ -41,12 +41,12 @@ public class MoveToHeatAreaCommand extends BaseCommandHandler { if (isExecuting.get()) { throw new AppException(ResultCode.COMMAND_ALREADY_EXECUTING); } - deviceStateService.setGantryArmStateIdle(true); - isExecuting.set(true); String heatId = cmdDTO.getStringParam("heatId"); HeatModuleCode heatModuleId = HeatModuleCode.valueOf(heatId); //校验目标加热位是否有托盘 try{ + deviceStateService.setGantryArmStateIdle(true); + isExecuting.set(true); Boolean heatModuleTray = deviceCommandUtilService.heatModuleTray(heatModuleId); if (!heatModuleTray) { throw new AppException(ResultCode.TARGET_HEAT_MODULE_NO_TRAY); diff --git a/src/main/java/com/iflytop/gd/app/cmd/MoveToSolutionAreaCommand.java b/src/main/java/com/iflytop/gd/app/cmd/MoveToSolutionAreaCommand.java index d3eb455..211ac5d 100644 --- a/src/main/java/com/iflytop/gd/app/cmd/MoveToSolutionAreaCommand.java +++ b/src/main/java/com/iflytop/gd/app/cmd/MoveToSolutionAreaCommand.java @@ -40,12 +40,12 @@ public class MoveToSolutionAreaCommand extends BaseCommandHandler { if (isExecuting.get()) { throw new AppException(ResultCode.COMMAND_ALREADY_EXECUTING); } - deviceStateService.setGantryArmStateIdle(true); - isExecuting.set(true); String heatId = cmdDTO.getStringParam("heatId"); HeatModuleCode heatModuleId = HeatModuleCode.valueOf(heatId); //校验目标加热位是否有托盘 try{ + deviceStateService.setGantryArmStateIdle(true); + isExecuting.set(true); Boolean heatModuleTray = deviceCommandUtilService.heatModuleTray(heatModuleId); if (heatModuleTray) { throw new AppException(ResultCode.TARGET_HEAT_MODULE_OCCUPIED);