|
|
@ -61,10 +61,10 @@ public class MoveToSolutionAreaCommand extends BaseCommandHandler { |
|
|
|
//校验目标加热位是否有托盘 |
|
|
|
try { |
|
|
|
deviceStateService.getCommandMutexState().get().setMoveToSolutionAreaCommandExecuting(true); |
|
|
|
HeatModuleState heatModuleState = deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode); |
|
|
|
if(heatModuleState.getTrayStatus() == 0){ |
|
|
|
throw new AppException(ResultCode.TARGET_HEAT_MODULE_NO_TRAY); |
|
|
|
} |
|
|
|
// HeatModuleState heatModuleState = deviceStateService.getDeviceState().getHeatModuleByCode(heatModuleCode); |
|
|
|
// if(heatModuleState.getTrayStatus() == 0){ |
|
|
|
// throw new AppException(ResultCode.TARGET_HEAT_MODULE_NO_TRAY); |
|
|
|
// } |
|
|
|
// Boolean heatModuleTray = heatModuleService.heatModuleSensorState(heatModuleCode); |
|
|
|
// if (!heatModuleTray) { |
|
|
|
// throw new AppException(ResultCode.TARGET_HEAT_MODULE_NO_TRAY); |
|
|
|