no message

This commit is contained in:
2025-09-29 13:53:56 +08:00
parent c8d32a77a2
commit cd6d4c67c9

View File

@ -24,6 +24,8 @@ import java.util.Map;
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor; import java.util.concurrent.Executor;
import static java.lang.Thread.sleep;
/** /**
* 数据同步控制器 * 数据同步控制器
@ -87,7 +89,7 @@ public class SendDataController {
log.info("/subOrder 接收充电数据:{}",id); log.info("/subOrder 接收充电数据:{}",id);
return CompletableFuture return CompletableFuture
.supplyAsync(() -> { .supplyAsync(() -> {
try { try {sleep(500);
return sendDataService.sendSubOrderToBattery(Long.parseLong(id)); return sendDataService.sendSubOrderToBattery(Long.parseLong(id));
} catch (Exception e) { } catch (Exception e) {
log.error("处理用户数据时发生异常", e); log.error("处理用户数据时发生异常", e);