|
@ -42,7 +42,7 @@ public class TrayService { |
|
|
deviceStateService.getDeviceState().getSolutionModule().setTrayStatus(1); |
|
|
deviceStateService.getDeviceState().getSolutionModule().setTrayStatus(1); |
|
|
deviceStateService.getDeviceState().getSolutionModule().setIdle(false); |
|
|
deviceStateService.getDeviceState().getSolutionModule().setIdle(false); |
|
|
return trayState; |
|
|
return trayState; |
|
|
}else{ |
|
|
|
|
|
|
|
|
} else { |
|
|
throw new AppException(ResultCode.SOLUTION_MODULE_OCCUPIED); |
|
|
throw new AppException(ResultCode.SOLUTION_MODULE_OCCUPIED); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -51,12 +51,10 @@ public class TrayService { |
|
|
* 拿走了托盘 |
|
|
* 拿走了托盘 |
|
|
*/ |
|
|
*/ |
|
|
public synchronized void trayOut() throws InterruptedException { |
|
|
public synchronized void trayOut() throws InterruptedException { |
|
|
if (deviceStateService.getDeviceState().getSolutionModule().getTrayStatus() == 1) { |
|
|
|
|
|
List<TrayState> trayList = deviceStateService.getDeviceState().getTray(); |
|
|
|
|
|
trayList.removeIf(TrayState::isInSolutionModule); |
|
|
|
|
|
deviceStateService.getDeviceState().getSolutionModule().setTrayStatus(0); |
|
|
|
|
|
solutionModuleService.releaseSolutionModule(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
List<TrayState> trayList = deviceStateService.getDeviceState().getTray(); |
|
|
|
|
|
trayList.removeIf(TrayState::isInSolutionModule); |
|
|
|
|
|
deviceStateService.getDeviceState().getSolutionModule().setTrayStatus(0); |
|
|
|
|
|
solutionModuleService.releaseSolutionModule(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|