浏览代码

fix 删除楼层判断bug

lvxianyun 3 年之前
父节点
当前提交
7771ce400c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/persagy/proxy/object/controller/AdmFloorController.java

+ 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);