diff --git a/java110-db/src/main/resources/mapper/user/OwnerServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerServiceDaoImplMapper.xml
index dffe86a166f0930043cbcbae48d365335a800587..6cd4924cd39bc12841582a073e78f70b723dc84e 100755
--- a/java110-db/src/main/resources/mapper/user/OwnerServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerServiceDaoImplMapper.xml
@@ -136,7 +136,10 @@
left join t_dict tdType on tdType.table_name = 'building_owner' and tdType.`table_columns` = 'person_type' and tdType.status_cd = t.person_type
left join t_dict tdRole on tdRole.table_name = 'building_owner' and tdRole.`table_columns` = 'person_role' and tdRole.status_cd = t.person_role
- left join building_owner_room_rel borr on borr.status_cd = '0' and t.member_id = borr.owner_id
+
+ left join building_owner_room_rel borr on borr.status_cd = '0'
+
+ and (t.owner_id = borr.owner_id or t.member_id = borr.owner_id)
left join building_owner_room_rel borr on t.member_id = borr.owner_id and borr.status_cd = t.status_cd
@@ -241,7 +244,10 @@
from building_owner t
left join t_dict td on td.table_name = 'building_owner' and td.`table_columns` = 'owner_type_cd' and td.status_cd = t.owner_type_cd
- left join building_owner_room_rel borr on borr.status_cd = '0' and t.owner_id = borr.owner_id
+
+ left join building_owner_room_rel borr on borr.status_cd = '0'
+
+ and (t.owner_id = borr.owner_id or t.member_id = borr.owner_id)
left join building_owner_room_rel borr on t.owner_id = borr.owner_id and borr.status_cd = t.status_cd
diff --git a/service-user/src/main/java/com/java110/user/cmd/owner/QueryOwnerAndMembersCmd.java b/service-user/src/main/java/com/java110/user/cmd/owner/QueryOwnerAndMembersCmd.java
index a866ab5b636f339e8ee5b3f5e687f42b5bdfc9a2..b818828c4466bd277a4235c1302f16fec717d1f6 100644
--- a/service-user/src/main/java/com/java110/user/cmd/owner/QueryOwnerAndMembersCmd.java
+++ b/service-user/src/main/java/com/java110/user/cmd/owner/QueryOwnerAndMembersCmd.java
@@ -173,9 +173,9 @@ public class QueryOwnerAndMembersCmd extends Cmd {
continue;
}
roomName = "";
- for (int roomIndex = 0; roomIndex < roomDtos.size(); roomIndex++) {
- if (roomIndex > 2) {
- break;
+ for (int roomIndex = 0; roomIndex < roomDtos.size() && roomIndex <3;roomIndex++) {
+ if (roomIndex > 0) {
+ roomName += ",";
}
RoomDto tmpRoomDto = roomDtos.get(roomIndex);
roomName += (tmpRoomDto.getFloorNum() + "-" + tmpRoomDto.getUnitNum() + "-" + tmpRoomDto.getRoomNum());