1.体现审核列表用户信息不展示修复

This commit is contained in:
张松 2025-01-06 19:01:31 +08:00
parent 7333eaf163
commit 73bd738c8b
1 changed files with 3 additions and 0 deletions

View File

@ -667,6 +667,8 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
if (!page.isEmpty()) {
Set<Long> userIdList = page.stream().map(CashOut::getUserId).collect(Collectors.toSet());
Map<Long, String> userNameMap = userDao.selectList(new LambdaQueryWrapper<UserEntity>().in(UserEntity::getUserId, userIdList)
.select(UserEntity::getUserName, UserEntity::getUserId)).stream().collect(Collectors.toMap(UserEntity::getUserId, UserEntity::getUserName));
Map<Long, CashOut> countInfoMap = cashOutDao.countByUserIdList(userIdList).stream().collect(Collectors.toMap(CashOut::getUserId, item -> item));
page.forEach(item -> {
CashOut countInfo = countInfoMap.get(item.getUserId());
@ -676,6 +678,7 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
item.setVerifyCount(countInfo.getVerifyCount());
item.setVerifyTotal(countInfo.getVerifyTotal());
}
item.setUserName(userNameMap.get(item.getUserId()));
});
}