1.体现审核列表用户信息不展示修复
This commit is contained in:
@@ -667,6 +667,8 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|||||||
|
|
||||||
if (!page.isEmpty()) {
|
if (!page.isEmpty()) {
|
||||||
Set<Long> userIdList = page.stream().map(CashOut::getUserId).collect(Collectors.toSet());
|
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));
|
Map<Long, CashOut> countInfoMap = cashOutDao.countByUserIdList(userIdList).stream().collect(Collectors.toMap(CashOut::getUserId, item -> item));
|
||||||
page.forEach(item -> {
|
page.forEach(item -> {
|
||||||
CashOut countInfo = countInfoMap.get(item.getUserId());
|
CashOut countInfo = countInfoMap.get(item.getUserId());
|
||||||
@@ -676,6 +678,7 @@ public class CashOutServiceImpl extends ServiceImpl<CashOutDao, CashOut> impleme
|
|||||||
item.setVerifyCount(countInfo.getVerifyCount());
|
item.setVerifyCount(countInfo.getVerifyCount());
|
||||||
item.setVerifyTotal(countInfo.getVerifyTotal());
|
item.setVerifyTotal(countInfo.getVerifyTotal());
|
||||||
}
|
}
|
||||||
|
item.setUserName(userNameMap.get(item.getUserId()));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user