Authored by mingdan.ge

驳回

... ... @@ -253,6 +253,9 @@ public interface IUnionShareService {
*/
PageResponseBO<UnionShareUserApplyListBo> queryUnionShareUserApplys(UnionShareUserApplyListReqBo parm);
/**
* 查询联盟用户列表
*/
PageResponseBO<UnionShareUserRspBo> queryUnionShareUsers(UnionShareUserReqBO req);
/**
... ...
... ... @@ -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);
... ...
... ... @@ -164,7 +164,9 @@
str += "<a role='pass' dataId='" + rowData.id + "' style='margin-left:10px'>开通锁粉</a>";
}
str = "<a role='userIdentity' dataId='" + rowData.uid + "' style='margin-left:10px'>身份信息驳回</a>";
if(rowData.identityStatus==1) {
str += "<a role='userIdentity' dataId='" + rowData.uid + "' style='margin-left:10px'>身份信息驳回</a>";
}
return str;
}
}
... ...