| | |
| | | throw new IllegalArgumentException((roomIndex + 1) + "行手机号不能为空"); |
| | | } |
| | | |
| | | if (importOwnerRoomDto.getTel().length() > 11) { |
| | | throw new IllegalArgumentException((roomIndex + 1) + "行手机号超过11位,请核实"); |
| | | } |
| | | |
| | | if (StringUtil.isEmpty(importOwnerRoomDto.getIdCard())) { |
| | | throw new IllegalArgumentException((roomIndex + 1) + "行身份证号不能为空"); |
| | | } |
| | |
| | | // 校验成员之前是否存在 业主角色 |
| | | hasOwnerType = false; |
| | | for (int preRoomIndex = 0; preRoomIndex < roomIndex; preRoomIndex++) { |
| | | tmpImportOwnerRoomDto = ownerRooms.get(roomIndex); |
| | | tmpImportOwnerRoomDto = ownerRooms.get(preRoomIndex); |
| | | |
| | | if (tmpImportOwnerRoomDto.getFloorNum().equals(importOwnerRoomDto.getFloorNum()) |
| | | && tmpImportOwnerRoomDto.getUnitNum().equals(importOwnerRoomDto.getUnitNum()) |
| | | && tmpImportOwnerRoomDto.getRoomNum().equals(importOwnerRoomDto.getRoomNum()) |
| | | && OwnerDto.OWNER_TYPE_CD_OWNER.equals(tmpImportOwnerRoomDto.getOwnerTypeCd())) { |
| | | hasOwnerType = true; |
| | | break; |
| | | } |
| | | } |
| | | |