velocity integration complete

This commit is contained in:
2026-05-29 23:02:50 +02:00
parent 24ba6d13f6
commit c2f5b63fa6
21 changed files with 148 additions and 178 deletions

View File

@@ -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) {