|
|
@@ -1,6 +1,7 @@
|
|
|
package com.seecoder.BlueWhale.ServiceImpl;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.stream.Collectors;
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -39,7 +40,7 @@ public class StoreServiceImpl implements StoreService {
|
|
|
|
|
|
@Override
|
|
|
public List<StoreVO> getAllStores() {
|
|
|
- return storeMapper.findAll().stream().map(Store::toVO).toList();
|
|
|
+ return storeMapper.findAll().stream().map(Store::toVO).collect(Collectors.toList());
|
|
|
}
|
|
|
|
|
|
}
|