Browse Source

fix 删除楼层判断bug

lvxianyun 3 years ago
parent
commit
7771ce400c

+ 2 - 2
src/main/java/com/persagy/proxy/object/controller/AdmFloorController.java

@@ -141,12 +141,12 @@ public class AdmFloorController {
         }
         admQueryCriteria.setName(AdmISpace.OBJ_TYPE);
         AdmResponse admResponseISpace = iAdmISpaceService.doQuery(AdmContextUtil.toDmpContext(), admQueryCriteria, AdmISpace.class);
-        if(admResponseISpace.getResult().equals(DmpResult.SUCCESS) && admResponseSpace.getCount() > 0){
+        if(admResponseISpace.getResult().equals(DmpResult.SUCCESS) && admResponseISpace.getCount() > 0){
             return AdmResponse.failure(msg);
         }
         admQueryCriteria.setName(AdmEquipment.OBJ_TYPE);
         AdmResponse admResponseEuip = equipmentService.query(admQueryCriteria);
-        if(admResponseEuip.getResult().equals(DmpResult.SUCCESS) && admResponseSpace.getCount() > 0){
+        if(admResponseEuip.getResult().equals(DmpResult.SUCCESS) && admResponseEuip.getCount() > 0){
             return AdmResponse.failure(msg);
         }
         service.doDelete(AdmContextUtil.toDmpContext(), vos);