浏览代码

调整设备实现类的问题

lijie 3 年之前
父节点
当前提交
2af53aeeba
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/java/com/persagy/proxy/dictionary/service/impl/AdmModelRelServiceImpl.java

+ 3 - 3
src/main/java/com/persagy/proxy/dictionary/service/impl/AdmModelRelServiceImpl.java

@@ -147,7 +147,7 @@ public class AdmModelRelServiceImpl extends AbstractAdmBaseServiceImpl<AdmModelR
         AdmQueryCriteria criteria = new AdmQueryCriteria();
         criteria.setFilters("bimId = '"+modelRel.getBimId()+"'");
         criteria.setFilters("floorId = '"+modelRel.getFloorId()+"'");
-        AdmResponse admResponse = equipmentService.doQuery(context, criteria, AdmEquipment.class);
+        AdmResponse admResponse = equipmentService.query(criteria);
         List<AdmEquipment> content = (List<AdmEquipment>) admResponse.getContent();
         if(CollUtil.isEmpty(content)){
             return;
@@ -295,7 +295,7 @@ public class AdmModelRelServiceImpl extends AbstractAdmBaseServiceImpl<AdmModelR
         AdmQueryCriteria criteria = new AdmQueryCriteria();
         criteria.setFilters("bimId = '"+modelRel.getBimId()+"' and floorId = '"+modelRel.getFloorId()+"'");
        // criteria.setFilters("floorId = '"+modelRel.getFloorId()+"'");
-        AdmResponse admResponse = equipmentService.doQuery(context, criteria, AdmEquipment.class);
+        AdmResponse admResponse = equipmentService.query(criteria);
         if(CollUtil.isEmpty(admResponse.getContent())){
             return new ArrayList<>();
         }
@@ -308,7 +308,7 @@ public class AdmModelRelServiceImpl extends AbstractAdmBaseServiceImpl<AdmModelR
     private List<AdmEquipment> queryEquipmentByBimId(InstanceUrlParam context, AdmModelRel vo){
         AdmQueryCriteria criteria = new AdmQueryCriteria();
         criteria.setFilters("bimId = '"+vo.getOldBimId()+"'");
-        AdmResponse admResponse = equipmentService.doQuery(context, criteria, AdmEquipment.class);
+        AdmResponse admResponse = equipmentService.query(criteria);
         return (List<AdmEquipment>)admResponse.getContent();
     }