Commit e79ecc76 by fudahua

登陆接口

parent b5ee75ff
...@@ -418,8 +418,17 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi ...@@ -418,8 +418,17 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
Page<BindStoreInfoDTO> retPage = PageUtil.changeToCurrentPage(relationPage, BindStoreInfoDTO.class); Page<BindStoreInfoDTO> retPage = PageUtil.changeToCurrentPage(relationPage, BindStoreInfoDTO.class);
List<String> storeIds = relationPage.getResult().stream().map(tab -> tab.getStoreId()).collect(Collectors.toList()); List<String> storeIds = relationPage.getResult().stream().map(tab -> tab.getStoreId()).collect(Collectors.toList());
List<StoreDTO> dtoList = storeService.queryStore(storeIds); List<StoreDTO> dtoList = storeService.queryStore(storeIds);
retPage.setResult(EntityUtil.changeEntityListNew(BindStoreInfoDTO.class, dtoList)); Map<String, StoreDTO> storeMap = dtoList.stream().collect(Collectors.toMap(dto -> dto.getStoreId(), dto -> dto));
return retPage;
retPage.getResult().forEach(dto -> {
StoreDTO storeDTO = storeMap.get(dto.getStoreId());
if (null == storeDTO) {
return;
}
dto.setStoreGroupName(storeDTO.getStoreGroupName());
});
return retPage;
} }
@Override @Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment