优化
This commit is contained in:
@ -42,6 +42,7 @@ import java.time.LocalTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import java.util.concurrent.ForkJoinPool;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
@ -316,6 +317,7 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
|
||||
appUserInfoCardVO.setMoney(cardService.getMoneyByUserId(memberUserDO.getId()));
|
||||
|
||||
//刷新绑定时间
|
||||
ForkJoinPool pool = new ForkJoinPool();
|
||||
CompletableFuture.supplyAsync(() -> {
|
||||
int i = 0;
|
||||
try {
|
||||
@ -326,7 +328,7 @@ public class DiningPlatesServiceImpl implements DiningPlatesService {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return i>0;
|
||||
});
|
||||
},pool);
|
||||
return appUserInfoCardVO;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user