opt:上传MES改为异步执行
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user