ソースを参照

修复 提示一户只能有一个户主

魏熙美 6 年 前
コミット
e518f96eb3
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java

+ 1
- 1
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoServiceImpl.java ファイルの表示

@@ -563,7 +563,7 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
563 563
                     tpBuildingOwnerInfo.getBuildingId(), tpBuildingOwnerInfo.getUnitId(),
564 564
                     tpBuildingOwnerInfo.getLevelId(), tpBuildingOwnerInfo.getRoomNoId());
565 565
             if (null != hasUserVerify) {
566
-                return;
566
+                throw new WisdomException("一户只能有1个户主");
567 567
             }
568 568
         }
569 569