added pipework history job

This commit is contained in:
Luca Haid
2025-04-14 11:12:44 +02:00
parent 61e3fa067a
commit 3b4200de52
2 changed files with 6 additions and 2 deletions

View File

@@ -282,6 +282,7 @@ class BuildingModel {
b.city AS building_city,
wi.id AS item_id,
wi.name AS item_name,
wi.num AS item_num,
wi.label AS item_label,
wi.type AS item_type,
wv.id AS value_id,
@@ -293,7 +294,7 @@ class BuildingModel {
FROM Workflowvalue wv
JOIN Workflowitem wi ON wv.item_id = wi.id
JOIN Building b ON wv.object_id = b.id";
$where = ["wi.object_type = 'Building'", "wi.num < 150"];
$where = ["wi.object_type = 'Building'", "wi.name NOT LIKE '%delimiter%'"];
if ($from !== null && $to !== null) {
$where[] = "(wv.changed >= " . intval($from) . " AND wv.changed <= " . intval($to) . ")";