浏览代码

fix floor update floorSequenceID 空指针

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

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

@@ -195,7 +195,7 @@ public class AdmFloorController {
                     if(admFloorBdMap.containsKey(admFloorOld.getBuildingId())){
                         AdmFloor admFloorNew = admFloorBdMap.get(admFloorOld.getBuildingId());
                         //楼层序列号相同
-                        if(!admFloorOld.getId().equals(admFloorNew.getId()) && admFloorOld.getFloorSequenceID()!=null && admFloorNew.getFloorSequenceID().equals(admFloorOld.getFloorSequenceID())){
+                        if(admFloorOld.getFloorSequenceID()!=null && admFloorNew.getFloorSequenceID()!= null && !admFloorOld.getId().equals(admFloorNew.getId()) && admFloorNew.getFloorSequenceID().equals(admFloorOld.getFloorSequenceID())){
                             return AdmResponse.failure("楼层顺序号不可以重复");
                         }
                     }