mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-02-09 12:29:13 +00:00
falta presupuesto marcapaginas y maquetacion y revision general en admin. revisar user
This commit is contained in:
@ -23,9 +23,15 @@ public class DataTablesSpecification {
|
||||
DataTablesRequest.Column col = dt.columns.get(i);
|
||||
if (col.searchable && col.search != null && col.search.value != null && !col.search.value.isEmpty()) {
|
||||
try {
|
||||
ands.add(like(cb, root.get(col.name), col.search.value));
|
||||
Path<?> path = root;
|
||||
String[] parts = col.name.split("\\.");
|
||||
for (String part : parts) {
|
||||
path = path.get(part);
|
||||
}
|
||||
ands.add(like(cb, path, col.search.value));
|
||||
} catch (IllegalArgumentException ex) {
|
||||
// columna no mapeada o relación: la ignoramos
|
||||
System.out.println("[DT] columna no mapeada o relación: " + col.name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user