From 8d58c40af40493bd5f066cbfdb1ffd9f113c22fc Mon Sep 17 00:00:00 2001
From: 严智鑫 <test>
Date: 星期三, 03 九月 2025 16:37:21 +0800
Subject: [PATCH] 1.前端推数据使用了最新的webSokect客户现场总是掉线,修改为接口方式 2.设备交互整体增加异常处理以及PLC连接方式改为短连接
---
JiuMuMesParent/moduleService/DeviceInteractionModule/src/main/java/com/mes/md/controller/TaskingController.java | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/JiuMuMesParent/moduleService/DeviceInteractionModule/src/main/java/com/mes/md/controller/TaskingController.java b/JiuMuMesParent/moduleService/DeviceInteractionModule/src/main/java/com/mes/md/controller/TaskingController.java
index 8104108..156a2d2 100644
--- a/JiuMuMesParent/moduleService/DeviceInteractionModule/src/main/java/com/mes/md/controller/TaskingController.java
+++ b/JiuMuMesParent/moduleService/DeviceInteractionModule/src/main/java/com/mes/md/controller/TaskingController.java
@@ -11,6 +11,7 @@
import com.mes.md.mapper.MachineMapper;
import com.mes.md.mapper.TaskingMapper;
import com.mes.md.service.ProjectService;
+import com.mes.md.service.TaskingLogService;
import com.mes.md.service.TaskingService;
import com.mes.utils.Result;
import io.swagger.annotations.ApiOperation;
@@ -39,7 +40,8 @@
private MachineMapper machineMapper;
@Autowired
private TaskingMapper taskingMapper;
-
+ @Autowired
+ private TaskingLogService taskingLogService;
@Autowired
private KBBTLensSortingMapper kBBTLensSortingMapper;
@@ -91,6 +93,7 @@
.eq(Tasking::getGlassState,"姝e父")
.eq(Tasking::getState,"绾夸笂")
.ne(Tasking::getWorkState,"瀹屽伐"));
+ taskingLogService.reportTaskingLog();
return Result.build(200,"鎴愬姛",deleteCount);
}catch (Exception e){
return Result.build(199,"寮傚父",machine);
--
Gitblit v1.8.0