From 66529fa91c89bc1783162fda74f8bcb4588366fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Sun, 25 May 2025 17:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=8C=87=E4=BB=A4=E4=B9=8B?= =?UTF-8?q?=E9=97=B4=E7=9A=84=E4=BA=92=E6=96=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/iflytop/gd/app/command/control/SolutionAddCommand.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java b/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java index 13791c4..34cf843 100644 --- a/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java +++ b/src/main/java/com/iflytop/gd/app/command/control/SolutionAddCommand.java @@ -33,6 +33,9 @@ public class SolutionAddCommand extends BaseCommandHandler { @Override public CompletableFuture handle(CmdDTO cmdDTO) { + if (deviceStateService.getCommandMutexState().get().isSolutionAddCommandExecuting()) { + throw new AppException(ResultCode.COMMAND_ALREADY_EXECUTING); + } if (deviceStateService.getCommandMutexState().get().isMoveToHeatAreaCommandExecuting() || deviceStateService.getCommandMutexState().get().isMoveToSolutionAreaCommandExecuting() || deviceStateService.getCommandMutexState().get().isSolutionAddCommandExecuting()