|
@@ -554,6 +554,17 @@ public class BuildingOwnerInfoServiceImpl extends ServiceImpl<TpBuildingOwnerInf
|
554
|
554
|
return;
|
555
|
555
|
}
|
556
|
556
|
|
|
557
|
+ // 校验这个房产有没有业主,只能存在一个业主
|
|
558
|
+ if (taUserVerify.getRoleId().intValue() == 1) {
|
|
559
|
+ TaUserVerify hasUserVerify = taUserVerifyMapper.selectCommunityAndAddress(userElement.getCommunityId(), tpBuildingOwnerInfo.getPhaseId(),
|
|
560
|
+ tpBuildingOwnerInfo.getBuildingId(), tpBuildingOwnerInfo.getUnitId(),
|
|
561
|
+ tpBuildingOwnerInfo.getLevelId(), tpBuildingOwnerInfo.getRoomNoId());
|
|
562
|
+ if (null != hasUserVerify) {
|
|
563
|
+ return;
|
|
564
|
+ }
|
|
565
|
+ }
|
|
566
|
+
|
|
567
|
+
|
557
|
568
|
taUserVerify.setPhaseId(tpBuildingOwnerInfo.getPhaseId());
|
558
|
569
|
taUserVerify.setPhaseName(tpBuildingOwnerInfo.getPhaseName());
|
559
|
570
|
taUserVerify.setBuildingId(tpBuildingOwnerInfo.getBuildingId());
|