| | |
| | | import com.java110.intf.user.IOwnerCarV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerRoomRelV1InnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerV1InnerServiceSMO; |
| | | import com.java110.utils.util.ListUtil; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | @Override |
| | | public List<RoomDto> queryRoomOweFee(List<RoomDto> roomDtos) { |
| | | if (roomDtos == null || roomDtos.size() < 1) { |
| | | if (ListUtil.isNull(roomDtos)) { |
| | | return roomDtos; |
| | | } |
| | | List<String> roomIds = new ArrayList<>(); |
| | |
| | | } |
| | | |
| | | private void queryRoomOweFee(List<String> roomIds, List<RoomDto> roomDtos) { |
| | | if (roomIds == null || roomIds.size() < 1) { |
| | | if (ListUtil.isNull(roomIds)) { |
| | | return; |
| | | } |
| | | Map info = new HashMap(); |
| | |
| | | |
| | | for (RoomDto roomDto : roomDtos) { |
| | | for (Map count : repairCounts) { |
| | | if (!StringUtil.isEmpty(roomDto.getRoomId()) && !StringUtil.isEmpty(count.get("roomId").toString())) { |
| | | if (roomDto.getRoomId().equals(count.get("roomId").toString())) { |
| | | roomDto.setRoomOweFee(count.get("oweFee").toString()); |
| | | } |
| | | } else { |
| | | if (StringUtil.isEmpty(roomDto.getRoomId())) { |
| | | continue; |
| | | } |
| | | if (StringUtil.isEmpty(count.get("roomId").toString())) { |
| | | continue; |
| | | } |
| | | if (roomDto.getRoomId().equals(count.get("roomId").toString())) { |
| | | roomDto.setRoomOweFee(count.get("oweFee").toString()); |
| | | } |
| | | } |
| | | } |
| | |
| | | List<Map> repairCounts = reportOweFeeInnerServiceSMOImpl.queryOweFeesByOwnerIds(info); |
| | | |
| | | for (RoomDto roomDto : roomDtos) { |
| | | if(StringUtil.isEmpty(roomDto.getOwnerId())){ |
| | | if (StringUtil.isEmpty(roomDto.getOwnerId())) { |
| | | continue; |
| | | } |
| | | for (Map count : repairCounts) { |
| | |
| | | List<Map> memberCounts = ownerCarV1InnerServiceSMOImpl.queryOwnerCarCountByOwnerIds(ownerIds); |
| | | |
| | | for (RoomDto roomDto : roomDtos) { |
| | | if(StringUtil.isEmpty(roomDto.getOwnerId())){ |
| | | if (StringUtil.isEmpty(roomDto.getOwnerId())) { |
| | | continue; |
| | | } |
| | | for (Map count : memberCounts) { |
| | |
| | | List<Map> memberCounts = ownerV1InnerServiceSMOImpl.queryOwnerMembersCount(ownerIds); |
| | | |
| | | for (RoomDto roomDto : roomDtos) { |
| | | if(StringUtil.isEmpty(roomDto.getOwnerId())){ |
| | | if (StringUtil.isEmpty(roomDto.getOwnerId())) { |
| | | continue; |
| | | } |
| | | for (Map count : memberCounts) { |