浏览代码

Merge remote-tracking branch 'origin/develop' into develop

lijie 3 年之前
父节点
当前提交
318087f1d7
共有 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("楼层顺序号不可以重复");
                         }
                     }