|
|
@ -41,6 +41,7 @@ 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); |
|
|
@ -51,6 +52,7 @@ public class MoveToHeatAreaCommand extends BaseCommandHandler { |
|
|
|
throw new AppException(ResultCode.TARGET_HEAT_MODULE_NO_TRAY); |
|
|
|
} |
|
|
|
}finally { |
|
|
|
deviceStateService.setGantryArmStateIdle(false); |
|
|
|
isExecuting.set(false); |
|
|
|
} |
|
|
|
return runAsync(() -> { |
|
|
@ -98,6 +100,7 @@ public class MoveToHeatAreaCommand extends BaseCommandHandler { |
|
|
|
deviceCommandUtilService.heaterMotorMove(cmdDTO.getCommandId(), cmdDTO.getCommand(), heatModuleId, trayLower);//下降加热位托盘 |
|
|
|
deviceStateService.setHeatModuleStateTrayStatus(heatModuleId, 1); |
|
|
|
} finally { |
|
|
|
deviceStateService.setGantryArmStateIdle(false); |
|
|
|
isExecuting.set(false); |
|
|
|
} |
|
|
|
}); |
|
|
|