Commit dea6926e by 徐高华

活码过滤门店状态

parent 6625c530
......@@ -501,6 +501,8 @@ public class HmLinkApiServiceImpl implements HmLinkApiService {
List<StoreDTO> dtoList = this.storeService.getStores(storeIds);
Map<String, StoreDTO> map = dtoList.stream()
.collect(Collectors.toMap(StoreDTO::getStoreId, dto -> dto, (k1, k2) -> k1));
storeList = storeList.stream().filter(o->null != map.get(o.getStoreId()) && map.get(o.getStoreId()).getStatus()==2)
.collect(Collectors.toList());
storeList.forEach(item -> {
if (null != map.get(item.getStoreId())) {
item.setStoreAddress(map.get(item.getStoreId()).getStoreAddress());
......
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