From 292c601e45c80e9ff2a91d65544f377afcb1cbd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Fri, 13 Jun 2025 12:58:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=81=9C=E6=AD=A2=E5=B7=A5=E8=89=BA?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=EF=BC=8C=E6=B8=85=E9=99=A4=E5=B7=A5?= =?UTF-8?q?=E8=89=BA=E4=B8=8A=E4=B8=8B=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/gd/app/service/api/CraftsService.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/iflytop/gd/app/service/api/CraftsService.java b/src/main/java/com/iflytop/gd/app/service/api/CraftsService.java index 0c3554b..19c0cfe 100644 --- a/src/main/java/com/iflytop/gd/app/service/api/CraftsService.java +++ b/src/main/java/com/iflytop/gd/app/service/api/CraftsService.java @@ -215,6 +215,8 @@ public class CraftsService extends ServiceImpl { * 停止执行工艺,不清除上下文 */ 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) {