velocity integration complete
This commit is contained in:
@@ -6,6 +6,8 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.jpa.domain.Specification;
|
||||
import org.springframework.http.HttpHeaders;
|
||||
import org.springframework.http.MediaType;
|
||||
import org.springframework.stereotype.Service;
|
||||
@@ -164,16 +166,8 @@ public class ProviderService {
|
||||
return null;
|
||||
}
|
||||
|
||||
public Object getProvidersByCategory(String category) {
|
||||
|
||||
List<Provider> existingProviders;
|
||||
if (category != null && !category.isEmpty()) {
|
||||
existingProviders = getProviderRepository().findByCategory(category);
|
||||
} else {
|
||||
existingProviders = getProviderRepository().findAll();
|
||||
}
|
||||
|
||||
return existingProviders;
|
||||
public Object findAll(Specification<Provider> specification, Pageable pageable) {
|
||||
return getProviderRepository().findAll(specification, pageable);
|
||||
}
|
||||
|
||||
public Object getProviders(List<Provider> existingProviders) {
|
||||
|
||||
Reference in New Issue
Block a user