|
|
@ -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); |
|
|
|