WIP sql query for the raum search

This commit is contained in:
SimonGschnell
2024-05-14 15:57:48 +02:00
parent 841e3b0390
commit 56e6efe416
2 changed files with 9 additions and 9 deletions
+9 -4
View File
@@ -406,11 +406,16 @@ EOSC;
ort.ort_kurzbz as ort_kurzbz,
ort.gebteil as building,
ort.stockwerk as floor,
ort.dislozierung as room_number
ort.dislozierung as room_number,
CONCAT(standort.plz,\' \',standort.ort,\', \',standort.strasse,\' \\ \',ort.stockwerk,\' Stockwerk\') as strasse,
CONCAT(ort.max_person,\', davon \',ort.arbeitsplaetze,\' PC-Plätze\') as plaetze
FROM public.tbl_ort as ort
WHERE ort.ort_kurzbz like \'%'. $searchstr . '%\' GROUP BY ort.ort_kurzbz'
LEFT JOIN (
select ort,standort_id,strasse, plz
FROM public.tbl_standort
LEFT JOIN public.tbl_adresse USING(adresse_id)
) standort USING(standort_id)
WHERE LOWER(ort.ort_kurzbz) like LOWER(\'%'. $searchstr . '%\') '
/*
org joins:
@@ -26,13 +26,8 @@ export default {
employee: employee,
organisationunit: organisationunit
},
<<<<<<< Updated upstream
template: `
<form ref="searchform" class="d-flex me-3 position-relative" action="javascript:void(0);"
=======
template: /*html*/`
<form ref="searchform" class="d-flex me-3" action="javascript:void(0);"
>>>>>>> Stashed changes
@focusin="this.searchfocusin" @focusout="this.searchfocusout">
<div class="input-group me-2 bg-white">
<input ref="searchbox" @keyup="this.search" @focus="this.showsearchresult"