|
|
@ -33,6 +33,9 @@ public class SolutionAddCommand extends BaseCommandHandler { |
|
|
|
|
|
|
|
@Override |
|
|
|
public CompletableFuture<Void> 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() |
|
|
|