| | |
| | | paramIn.put("state", "2002"); |
| | | paramIn.put("builtUpArea", room.getBuiltUpArea()); |
| | | paramIn.put("feeCoefficient", "1.00"); |
| | | paramIn.put("roomSubType", room.getRoomSubType()); |
| | | paramIn.put("roomArea", room.getRoomArea()); |
| | | paramIn.put("roomRent", room.getRoomRent()); |
| | | paramIn.put("roomType", "0".equals(room.getFloor().getUnitNum()) ? RoomDto.ROOM_TYPE_SHOPS : RoomDto.ROOM_TYPE_SHOPS); |
| | | |
| | | |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), apiUrl, HttpMethod.POST); |
| | |
| | | paramIn.put("sex", owner.getSex()); |
| | | paramIn.put("ownerTypeCd", "1001"); |
| | | paramIn.put("idCard", owner.getIdCard()); |
| | | paramIn.put("source","BatchImport"); |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), apiUrl, HttpMethod.POST); |
| | | |
| | | if (responseEntity.getStatusCode() == HttpStatus.OK) { |
| | |
| | | paramIn.put("communityId", result.getCommunityId()); |
| | | paramIn.put("floorNum", importFloor.getFloorNum()); |
| | | paramIn.put("userId", result.getUserId()); |
| | | paramIn.put("name", importFloor.getFloorNum() + "号楼"); |
| | | paramIn.put("name", importFloor.getFloorNum() + "栋"); |
| | | paramIn.put("floorArea", 1.00); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), apiUrl, HttpMethod.POST); |
| | |
| | | Assert.hasValue(os[3], "房屋信息选项中" + (osIndex + 1) + "行房屋楼层为空"); |
| | | Assert.hasValue(os[4], "房屋信息选项中" + (osIndex + 1) + "行房屋户型为空"); |
| | | Assert.hasValue(os[5], "房屋信息选项中" + (osIndex + 1) + "行建筑面积为空"); |
| | | if (!StringUtil.isNullOrNone(os[6])) { |
| | | if (os.length > 6 && !StringUtil.isNullOrNone(os[6])) { |
| | | Assert.hasValue(os[7], "房屋信息选项中" + (osIndex + 1) + "行房屋费用为空"); |
| | | Assert.hasValue(os[8], "房屋信息选项中" + (osIndex + 1) + "行费用到期时间为空"); |
| | | } |
| | | Assert.hasValue(os[9], "房屋信息选项中" + (osIndex + 1) + "行房屋类型为空"); |
| | | Assert.hasValue(os[10], "房屋信息选项中" + (osIndex + 1) + "行室内面积为空"); |
| | | Assert.hasValue(os[11], "房屋信息选项中" + (osIndex + 1) + "行租金为空"); |
| | | importRoom = new ImportRoom(); |
| | | importRoom.setRoomNum(os[0].toString()); |
| | | importRoom.setFloor(getImportFloor(floors, os[1].toString(), os[2].toString())); |
| | | importRoom.setLayer(Integer.parseInt(os[3].toString())); |
| | | importRoom.setSection(os[4].toString()); |
| | | importRoom.setBuiltUpArea(Double.parseDouble(os[5].toString())); |
| | | importRoom.setRoomSubType(os[9].toString()); |
| | | importRoom.setRoomArea(os[10].toString()); |
| | | importRoom.setRoomRent(os[11].toString()); |
| | | |
| | | if (!StringUtil.isNullOrNone(os[6])) { |
| | | |
| | | if (os.length > 6 && !StringUtil.isNullOrNone(os[6])) { |
| | | importRoom.setRoomFeeId(os[7].toString()); |
| | | importRoom.setFeeEndDate(os[8].toString()); |
| | | } |
| | | if (StringUtil.isNullOrNone(os[6])) { |
| | | if (os.length < 7 || StringUtil.isNullOrNone(os[6])) { |
| | | rooms.add(importRoom); |
| | | continue; |
| | | } |
| | | importRoom.setImportOwner(getImportOwner(owners, os[6].toString())); |
| | | rooms.add(importRoom); |
| | | } catch (Exception e) { |
| | | logger.error("房屋数据校验失败", e); |
| | | throw new IllegalArgumentException("房屋信息sheet中第" + (osIndex + 1) + "行数据错误,请检查" + e.getLocalizedMessage()); |
| | | } |
| | | } |