|
@@ -116,7 +116,7 @@ class RelationProvider {
|
|
|
WHERE("block.project_id = '${projectId}'")
|
|
|
AND()
|
|
|
WHERE("mep_system_type in (${mepStr})")
|
|
|
- if (!bimStr.trim().isEmpty()) {
|
|
|
+ if (bimStr.trim().isNotEmpty()) {
|
|
|
AND()
|
|
|
WHERE("bimid in (${bimStr})")
|
|
|
}
|
|
@@ -136,8 +136,11 @@ class RelationProvider {
|
|
|
WHERE("block.project_id = '${projectId}'")
|
|
|
AND()
|
|
|
WHERE("mep_system_type in (${mepStr})")
|
|
|
- AND()
|
|
|
- WHERE("bimid in (${bimStr})")
|
|
|
+
|
|
|
+ if (bimStr.trim().isNotEmpty()) {
|
|
|
+ AND()
|
|
|
+ WHERE("bimid in (${bimStr})")
|
|
|
+ }
|
|
|
if(buildingId != null) {
|
|
|
AND()
|
|
|
WHERE("building_id = '${buildingId}'")
|