Compare commits
2 Commits
c8d32a77a2
...
35829c9d84
| Author | SHA1 | Date | |
|---|---|---|---|
| 35829c9d84 | |||
| cd6d4c67c9 |
@ -24,6 +24,8 @@ import java.util.Map;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.Executor;
|
||||
|
||||
import static java.lang.Thread.sleep;
|
||||
|
||||
|
||||
/**
|
||||
* 数据同步控制器
|
||||
@ -87,7 +89,7 @@ public class SendDataController {
|
||||
log.info("/subOrder 接收充电数据:{}",id);
|
||||
return CompletableFuture
|
||||
.supplyAsync(() -> {
|
||||
try {
|
||||
try {sleep(1000);
|
||||
return sendDataService.sendSubOrderToBattery(Long.parseLong(id));
|
||||
} catch (Exception e) {
|
||||
log.error("处理用户数据时发生异常", e);
|
||||
|
||||
Reference in New Issue
Block a user