|
|
@ -33,7 +33,7 @@ public interface WidgetsBundleRepository extends JpaRepository<WidgetsBundleEnti |
|
|
WidgetsBundleEntity findWidgetsBundleByTenantIdAndAlias(UUID tenantId, String alias); |
|
|
WidgetsBundleEntity findWidgetsBundleByTenantIdAndAlias(UUID tenantId, String alias); |
|
|
|
|
|
|
|
|
@Query("SELECT wb FROM WidgetsBundleEntity wb WHERE wb.tenantId = :systemTenantId " + |
|
|
@Query("SELECT wb FROM WidgetsBundleEntity wb WHERE wb.tenantId = :systemTenantId " + |
|
|
"AND (:wb.title is NULL OR ilike(wb.title, CONCAT('%', :textSearch, '%')))") |
|
|
"AND (:textSearch is NULL OR ilike(wb.title, CONCAT('%', :textSearch, '%')) = true)") |
|
|
Page<WidgetsBundleEntity> findSystemWidgetsBundles(@Param("systemTenantId") UUID systemTenantId, |
|
|
Page<WidgetsBundleEntity> findSystemWidgetsBundles(@Param("systemTenantId") UUID systemTenantId, |
|
|
@Param("textSearch") String textSearch, |
|
|
@Param("textSearch") String textSearch, |
|
|
Pageable pageable); |
|
|
Pageable pageable); |
|
|
|