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