opt:上传MES改为异步执行

This commit is contained in:
2025-09-15 17:34:53 +08:00
parent 3de40b791c
commit 33a6745fce

View File

@@ -32,6 +32,7 @@ import org.nl.acs.opc.DeviceAppService;
import org.nl.config.SpringContextHolder;
import org.nl.config.lucene.service.LuceneExecuteLogService;
import org.nl.config.lucene.service.dto.LuceneLogDto;
import org.nl.config.thread.ThreadPoolExecutorUtil;
import org.nl.system.service.param.ISysParamService;
import java.util.HashMap;
@@ -733,7 +734,12 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic
String task_code = inst.getTask_code();
JSONObject jsonObject = new JSONObject();
jsonObject.put("task_code", task_code);
acsToWmsService.uploadMes(jsonObject);
// acsToWmsService.uploadMes(jsonObject);
// 修改为异步执行
new Thread(() -> {
acsToWmsService.uploadMes(jsonObject);
}).start();
} catch (Exception e) {
e.printStackTrace();
}