fix: 异步循环依赖报错

This commit is contained in:
2024-07-09 13:28:08 +08:00
parent d9a12ca3df
commit 6b82cc7967
3 changed files with 13 additions and 4 deletions

View File

@@ -324,7 +324,6 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
@Override
@Async
public HttpResponse feedTaskStatus(JSONArray data) {
//feedTaskStatus
try {

View File

@@ -1639,7 +1639,17 @@ public class TaskServiceImpl extends CommonServiceImpl<TaskMapper, Task> impleme
JSONArray ja = new JSONArray();
ja.add(feed_jo);
//TODO 有需要根据上位系统反馈的信息再做进一步处理
acstowmsService.feedTaskStatus(ja);
CompletableFuture.runAsync(() -> {
// 异步更新指令状态
try {
acstowmsService.feedTaskStatus(ja);
} catch (Exception e) {
e.printStackTrace();
}
});
}
}

View File

@@ -6,8 +6,8 @@ spring:
freemarker:
check-template-location: false
profiles:
# active: dev
active: prod
active: dev
# active: prod
jackson:
time-zone: GMT+8
data: