Browse Source

平面图查询设备bug修复

linhuili 3 years ago
parent
commit
35fc1305cd

+ 4 - 4
src/main/java/com/persagy/proxy/dictionary/service/impl/AdmPlanarServiceImpl.java

@@ -94,9 +94,9 @@ public class AdmPlanarServiceImpl extends AbstractAdmBaseServiceImpl<T> implemen
     private AdmResponse queryAdmEquip(InstanceUrlParam context, AdmPlanarEquipRequests request,Class<AdmEquipment> clazz){
         //增加过滤条件
         StringBuilder filters = new StringBuilder();
-        filters.append("buildingId = "+ request.getBuildingId() +";");
+        filters.append("buildingId = '"+ request.getBuildingId() +"';");
         if(StringUtils.isNotEmpty(request.getFloorId())){
-            filters.append("floorId = "+ request.getFloorId() +";");
+            filters.append("floorId = '"+ request.getFloorId() +"';");
         }
         if(CollUtil.isNotEmpty(request.getEquipTypes())){
             filters.append("classCode in "+"(\'" + java.lang.String.join("\',\'", request.getEquipTypes()) + "\')");
@@ -130,9 +130,9 @@ public class AdmPlanarServiceImpl extends AbstractAdmBaseServiceImpl<T> implemen
     private AdmResponse queryAdmSpace(InstanceUrlParam context, AdmPlanarEquipRequests request,Class<AdmSpace> clazz){
         //增加过滤条件
         StringBuilder filters = new StringBuilder();
-        filters.append("buildingId = "+ request.getBuildingId() +";");
+        filters.append("buildingId = '"+ request.getBuildingId() +"';");
         if(StringUtils.isNotEmpty(request.getFloorId())){
-            filters.append("floorId = "+ request.getFloorId() +";");
+            filters.append("floorId = '"+ request.getFloorId() +"';");
         }
         if(CollUtil.isNotEmpty(request.getZoneTypes())){
             filters.append("classCode in "+"(\'" + java.lang.String.join("\',\'", request.getZoneTypes()) + "\')");