|
|
@@ -113,6 +113,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
* @param roomDtos
|
|
|
*/
|
|
|
private void queryRoomContract(List<String> roomIds, List<RoomDto> roomDtos) {
|
|
|
+ if(roomDtos == null || roomDtos.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
Map info = new HashMap();
|
|
|
info.put("communityId", roomDtos.get(0).getCommunityId());
|
|
|
info.put("roomIds", roomIds.toArray(new String[roomIds.size()]));
|
|
|
@@ -128,6 +131,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
}
|
|
|
|
|
|
private void queryRoomOweFee(List<String> roomIds, List<RoomDto> roomDtos) {
|
|
|
+ if(roomIds == null || roomIds.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
Map info = new HashMap();
|
|
|
info.put("communityId", roomDtos.get(0).getCommunityId());
|
|
|
info.put("roomIds", roomIds.toArray(new String[roomIds.size()]));
|
|
|
@@ -149,6 +155,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
* @param roomDtos
|
|
|
*/
|
|
|
private void queryOwnerOweFee(List<String> ownerIds, List<RoomDto> roomDtos) {
|
|
|
+ if(ownerIds == null || ownerIds.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
Map info = new HashMap();
|
|
|
info.put("communityId", roomDtos.get(0).getCommunityId());
|
|
|
info.put("ownerIds", ownerIds.toArray(new String[ownerIds.size()]));
|
|
|
@@ -172,7 +181,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
*/
|
|
|
private void queryRepairCount(List<String> ownerTels, List<RoomDto> roomDtos) {
|
|
|
|
|
|
-
|
|
|
+ if(ownerTels == null || ownerTels.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
Map info = new HashMap();
|
|
|
info.put("communityId", roomDtos.get(0).getCommunityId());
|
|
|
info.put("ownerTels", ownerTels.toArray(new String[ownerTels.size()]));
|
|
|
@@ -197,7 +208,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
* @param roomDtos
|
|
|
*/
|
|
|
private void queryComplaintCount(List<String> ownerTels, List<RoomDto> roomDtos) {
|
|
|
-
|
|
|
+ if(ownerTels == null || ownerTels.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
|
|
|
Map info = new HashMap();
|
|
|
info.put("communityId", roomDtos.get(0).getCommunityId());
|
|
|
@@ -220,6 +233,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
* @param roomDtos
|
|
|
*/
|
|
|
private void queryCarCount(List<String> ownerIds, List<RoomDto> roomDtos) {
|
|
|
+ if(ownerIds == null || ownerIds.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
|
|
|
List<Map> memberCounts = ownerCarV1InnerServiceSMOImpl.queryOwnerCarCountByOwnerIds(ownerIds);
|
|
|
|
|
|
@@ -239,6 +255,9 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
* @param roomDtos
|
|
|
*/
|
|
|
private void queryOwnerMemberCount(List<String> ownerIds, List<RoomDto> roomDtos) {
|
|
|
+ if(ownerIds == null || ownerIds.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
|
|
|
List<Map> memberCounts = ownerV1InnerServiceSMOImpl.queryOwnerMembersCount(ownerIds);
|
|
|
|
|
|
@@ -259,6 +278,10 @@ public class QueryRoomStatisticsBMOImpl implements IQueryRoomStatisticsBMO {
|
|
|
*/
|
|
|
private void queryRoomCount(List<String> ownerIds, List<RoomDto> roomDtos) {
|
|
|
|
|
|
+ if(ownerIds == null || ownerIds.size() < 1){
|
|
|
+ return ;
|
|
|
+ }
|
|
|
+
|
|
|
//查询业主房屋数
|
|
|
List<Map> ownerRoomCounts = ownerRoomRelV1InnerServiceSMOImpl.queryRoomCountByOwnerIds(ownerIds);
|
|
|
|