| | |
| | | attrParamInfo.put("statusCd", StatusConstant.STATUS_CD_VALID); |
| | | List<RoomAttrDto> roomAttrDtos = BeanConvertUtil.covertBeanList(roomAttrServiceDaoImpl.getRoomAttrInfo(attrParamInfo), RoomAttrDto.class); |
| | | List<UserDto> users = null; |
| | | if (rooms.size() < 50) { |
| | | if (rooms.size() < 2) { |
| | | String[] userIds = getUserIds(rooms); |
| | | //根据 userId 查询用户信息 |
| | | users = userInnerServiceSMOImpl.getUserInfo(userIds); |
| | |
| | | @Override |
| | | public List<ImportRoomFee> freshRoomIds(@RequestBody List<ImportRoomFee> importRoomFees) { |
| | | for (ImportRoomFee importRoomFee : importRoomFees) { |
| | | List<Map> infos = roomServiceDaoImpl.getRoomInfos(BeanConvertUtil.beanCovertMap(importRoomFee)); |
| | | List<Map> infos = null; |
| | | if(!StringUtil.isEmpty(importRoomFee.getRoomId()) && !importRoomFee.getRoomId().startsWith("-")){ |
| | | Map paramIn = new HashMap(); |
| | | paramIn.put("communityId",importRoomFee.getCommunityId()); |
| | | paramIn.put("roomId",importRoomFee.getRoomId()); |
| | | infos = roomServiceDaoImpl.getRoomInfos(BeanConvertUtil.beanCovertMap(importRoomFee)); |
| | | }else{ |
| | | infos = roomServiceDaoImpl.getRoomInfos(BeanConvertUtil.beanCovertMap(importRoomFee)); |
| | | } |
| | | |
| | | if (infos == null || infos.size() < 1) { |
| | | continue; |
| | | } |
| | | importRoomFee.setRoomId(infos.get(0).get("roomId").toString()); |
| | | importRoomFee.setFloorNum(infos.get(0).get("floorNum").toString()); |
| | | importRoomFee.setUnitNum(infos.get(0).get("unitNum").toString()); |
| | | importRoomFee.setRoomNum(infos.get(0).get("roomNum").toString()); |
| | | |
| | | } |
| | | return importRoomFees; |
| | | } |