Commit ae5f8dfa by 徐高华

群导出加门店

parent ad7a072a
...@@ -116,7 +116,7 @@ public class GroupChatApiServiceImpl implements GroupChatApiService { ...@@ -116,7 +116,7 @@ public class GroupChatApiServiceImpl implements GroupChatApiService {
if(CollectionUtils.isNotEmpty(relationStaffIdList)) { if(CollectionUtils.isNotEmpty(relationStaffIdList)) {
List<TabHaobanClerkMainStoreRelated> storeRelationList = this.clerkMainStoreRelatedMapper.listByStaffIdList(relationStaffIdList); List<TabHaobanClerkMainStoreRelated> storeRelationList = this.clerkMainStoreRelatedMapper.listByStaffIdList(relationStaffIdList);
if(CollectionUtils.isNotEmpty(storeRelationList)) { if(CollectionUtils.isNotEmpty(storeRelationList)) {
List<String> storeIdList = storeRelationList.stream().map(o->o.getStoreId()).collect(Collectors.toList()); List<String> storeIdList = storeRelationList.stream().map(o->o.getStoreId()).collect(Collectors.toSet()).stream().collect(Collectors.toList());
String[] arr = storeIdList.toArray(new String[storeIdList.size()]) ; String[] arr = storeIdList.toArray(new String[storeIdList.size()]) ;
List<StoreDTO> storeList = this.storeService.getStores(arr) ; List<StoreDTO> storeList = this.storeService.getStores(arr) ;
if(CollectionUtils.isNotEmpty(storeList)) { if(CollectionUtils.isNotEmpty(storeList)) {
......
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