|
@@ -47,8 +47,9 @@ public class CorpMsgFollowController {
|
|
|
*/
|
|
*/
|
|
|
@GetMapping
|
|
@GetMapping
|
|
|
public Result<SearchResult<CorpMsgFollowAssociationView>> getPermitUserList() throws Exception {
|
|
public Result<SearchResult<CorpMsgFollowAssociationView>> getPermitUserList() throws Exception {
|
|
|
- List<String> res = wxCorpOps.getPermitUserList(corpConfig.getCorpId(), null);
|
|
|
|
|
- SearchResult<CorpMsgFollowAssociationView> search = beanSearcher.search(CorpMsgFollowAssociationView.class, MapUtils.flatBuilder(request.getParameterMap()).field(CorpMsgFollowAssociationView::getUserid, res).op(Operator.InList).build());
|
|
|
|
|
|
|
+ //List<String> res = wxCorpOps.getPermitUserList(corpConfig.getCorpId(), null);
|
|
|
|
|
+ //SearchResult<CorpMsgFollowAssociationView> search = beanSearcher.search(CorpMsgFollowAssociationView.class, MapUtils.flatBuilder(request.getParameterMap()).field(CorpMsgFollowAssociationView::getUserid, res).op(Operator.InList).build());
|
|
|
|
|
+ SearchResult<CorpMsgFollowAssociationView> search = beanSearcher.search(CorpMsgFollowAssociationView.class, MapUtils.flatBuilder(request.getParameterMap()).build());
|
|
|
search.getDataList().forEach((data)->{
|
|
search.getDataList().forEach((data)->{
|
|
|
List<CorpMsgFollowAssociation> corpMsgFollowAssociations = beanSearcher.searchAll(CorpMsgFollowAssociation.class, MapUtils.builder().field(CorpMsgFollowAssociation::getFollowId, data.getUserid()).build());
|
|
List<CorpMsgFollowAssociation> corpMsgFollowAssociations = beanSearcher.searchAll(CorpMsgFollowAssociation.class, MapUtils.builder().field(CorpMsgFollowAssociation::getFollowId, data.getUserid()).build());
|
|
|
List<String> followIds = corpMsgFollowAssociations.stream().map(CorpMsgFollowAssociation::getAssociationFollowId).collect(Collectors.toList());
|
|
List<String> followIds = corpMsgFollowAssociations.stream().map(CorpMsgFollowAssociation::getAssociationFollowId).collect(Collectors.toList());
|