feat:多线程上下文

This commit is contained in:
dzc committed 2026-06-16 18:58:23 +08:00
1 parent 62efe28a81
commit d2cc3b04d8
1 file changed
+1
@@ -228,6 +228,7 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
if (ObjectUtil.isNotEmpty(detail)) {
// 用户
CompletableFuture<Void> findUserFuture = CompletableFuture.runAsync(() -> {
RequestContextHolder.setRequestAttributes(requestAttributes);
if (ObjectUtil.isNotEmpty(detail.getUserId())) {
List<UserVO> userVoList = userService.getUserDeptByIds(List.of(detail.getUserId())).getData();
if (ObjectUtil.isNotEmpty(userVoList) && ObjectUtil.isNotEmpty(userVoList.get(0))) {