...
|
...
|
@@ -419,10 +419,9 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
result.setTotal(total);
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 查询申请记录
|
|
|
* @param req
|
|
|
* @return
|
|
|
* 查询联盟用户列表
|
|
|
*/
|
|
|
@Override
|
|
|
public PageResponseBO<UnionShareUserRspBo> queryUnionShareUsers(UnionShareUserReqBO req) {
|
...
|
...
|
@@ -434,11 +433,17 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
}
|
|
|
List<UnionShareUserRspBo> list=this.unionShareUserMapper.selectByCondition(req);
|
|
|
List<String> unionTypeList = list.stream().map(bo -> bo.getUnionType()).collect(Collectors.toList());
|
|
|
List<Integer> uidList = list.stream().map(bo -> bo.getUid()).collect(Collectors.toList());
|
|
|
Map<Long, MktMarketingUrl> longMktMarketingUrlMap = mktMarketingUrlDAO.selectByUnionTypes(unionTypeList);
|
|
|
List<UnionShareUserIdentityCard> identityCards= unionShareUserIdentityCardMapper.selectByUids(uidList);
|
|
|
Map<Integer, UnionShareUserIdentityCard> identityCardMap = identityCards.stream().collect(Collectors.toMap(UnionShareUserIdentityCard::getUid, i -> i));
|
|
|
list.forEach(u->{
|
|
|
if (longMktMarketingUrlMap.containsKey(Long.valueOf(u.getUnionType()))) {
|
|
|
u.setUnionName(longMktMarketingUrlMap.get(Long.valueOf(u.getUnionType())).getName());
|
|
|
}
|
|
|
if (identityCardMap.containsKey(u.getUid())) {
|
|
|
u.setIdentityStatus(identityCardMap.get(u.getUid()).getStatus().intValue());
|
|
|
}
|
|
|
});
|
|
|
PageResponseBO<UnionShareUserRspBo> result=new PageResponseBO<>();
|
|
|
result.setList(list);
|
...
|
...
|
|