|
|
@ -215,6 +215,8 @@ public class CraftsService extends ServiceImpl<CraftsMapper, Crafts> { |
|
|
|
* 停止执行工艺,不清除上下文 |
|
|
|
*/ |
|
|
|
public synchronized void stopCrafts(HeatModuleCode heatModuleCode) { |
|
|
|
TrayState trayState = deviceStateService.getDeviceState().getTrayStateByHeatModuleCode(heatModuleCode); |
|
|
|
trayState.setCrafts(null); |
|
|
|
CraftsContext ctx = contextMap.get(heatModuleCode); |
|
|
|
Future<?> future = futureMap.remove(heatModuleCode); |
|
|
|
if (ctx == null || future == null) { |
|
|
|