| | |
| | | import com.java110.api.smo.assetExport.IExportRoomSMO; |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.room.RoomDto; |
| | | import com.java110.dto.fee.FeeConfigDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.owner.OwnerCarDto; |
| | | import com.java110.dto.parking.ParkingSpaceDto; |
| | | import com.java110.entity.component.ComponentValidateResult; |
| | | import com.java110.dto.system.ComponentValidateResult; |
| | | import com.java110.intf.community.IParkingSpaceInnerServiceSMO; |
| | | import com.java110.intf.community.IRoomV1InnerServiceSMO; |
| | | import com.java110.intf.fee.IPayFeeConfigV1InnerServiceSMO; |
| | |
| | | ComponentValidateResult result = this.validateStoreStaffCommunityRelationship(pd, restTemplate); |
| | | |
| | | JSONObject paramIn = JSONObject.parseObject(pd.getReqData()); |
| | | |
| | | paramIn.put("storeId",result.getStoreId()); |
| | | Assert.hasKeyAndValue(paramIn, "communityId", "请求中未包含小区"); |
| | | //Assert.hasKeyAndValue(paramIn, "floorIds", "请求中未包含楼栋"); |
| | | Assert.hasKeyAndValue(paramIn, "configIds", "请求中未包含费用项"); |
| | |
| | | Row row = sheet.createRow(0); |
| | | Cell cell0 = row.createCell(0); |
| | | cell0.setCellValue("费用名称: 请填写系统中费用类型,如物业费,押金等 ;\n计费起始时间: " + |
| | | "计费起始时间时间,格式为YYYY-MM-DD;\n建账时间: 建账时间,格式为YYYY-MM-DD; \n 类型:表明是合同 房屋 还是车辆 房屋 1001 车辆 2002 合同 3003" + |
| | | "\n注意:所有单元格式为文本"); |
| | | "计费起始时间,格式为YYYY-MM-DD;\n计费结束时间,格式为YYYY-MM-DD;\n" + |
| | | "建账时间: 建账时间,格式为YYYY-MM-DD; \n 类型:表明是合同 房屋 还是车辆 房屋 1001 车辆 2002 合同 3003" + |
| | | "\n注意:所有单元格式为文本,计费结束时间只有一次性费用和间接性费用时需要填写"); |
| | | CellStyle cs = workbook.createCellStyle(); |
| | | cs.setWrapText(true); //关键 |
| | | cell0.setCellStyle(cs); |
| | | row.setHeight((short) (200 * 10)); |
| | | row = sheet.createRow(1); |
| | | row.createCell(0).setCellValue("房号/车牌号"); |
| | | row.createCell(0).setCellValue("车牌号"); |
| | | row.createCell(1).setCellValue("类型"); |
| | | row.createCell(2).setCellValue("费用项ID"); |
| | | row.createCell(3).setCellValue("收费项目"); |
| | | row.createCell(4).setCellValue("建账时间"); |
| | | row.createCell(5).setCellValue("计费起始时间"); |
| | | row.createCell(6).setCellValue("计费结束时间"); |
| | | |
| | | ParkingSpaceDto parkingSpaceDto = new ParkingSpaceDto(); |
| | | parkingSpaceDto.setCommunityId(paramIn.getString("communityId")); |
| | |
| | | Row row = sheet.createRow(0); |
| | | Cell cell0 = row.createCell(0); |
| | | cell0.setCellValue("费用名称: 请填写系统中费用类型,如物业费,押金等 ;\n计费起始时间: " + |
| | | "计费起始时间时间,格式为YYYY-MM-DD;\n建账时间: 建账时间,格式为YYYY-MM-DD; \n 类型:表明是合同 房屋 还是车辆 房屋 1001 车辆 2002 合同 3003" + |
| | | "\n注意:所有单元格式为文本"); |
| | | "计费起始时间,格式为YYYY-MM-DD;\n计费结束时间,格式为YYYY-MM-DD;\n" + |
| | | "建账时间: 建账时间,格式为YYYY-MM-DD; \n 类型:表明是合同 房屋 还是车辆 房屋 1001 车辆 2002 合同 3003" + |
| | | "\n注意:所有单元格式为文本,计费结束时间只有一次性费用和间接性费用时需要填写"); |
| | | CellStyle cs = workbook.createCellStyle(); |
| | | cs.setWrapText(true); //关键 |
| | | cell0.setCellStyle(cs); |
| | | row.setHeight((short) (200 * 10)); |
| | | row = sheet.createRow(1); |
| | | row.createCell(0).setCellValue("房号/车牌号"); |
| | | row.createCell(0).setCellValue("房号"); |
| | | row.createCell(1).setCellValue("类型"); |
| | | row.createCell(2).setCellValue("费用项ID"); |
| | | row.createCell(3).setCellValue("收费项目"); |
| | | row.createCell(4).setCellValue("建账时间"); |
| | | row.createCell(5).setCellValue("计费起始时间"); |
| | | row.createCell(6).setCellValue("计费结束时间"); |
| | | row.createCell(7).setCellValue("房屋状态"); |
| | | |
| | | |
| | | RoomDto roomDto = new RoomDto(); |
| | | roomDto.setCommunityId(paramIn.getString("communityId")); |
| | |
| | | row.createCell(3).setCellValue(tmpFeeConfigDto.getFeeName()); |
| | | row.createCell(4).setCellValue(""); |
| | | row.createCell(5).setCellValue(""); |
| | | row.createCell(6).setCellValue(""); |
| | | row.createCell(7).setCellValue(tmpRoomDto.getStateName()); |
| | | roomIndex += 1; |
| | | } |
| | | } |
| | |
| | | return; |
| | | } |
| | | JSONObject tdObj = null; |
| | | for (int tdIndex = 0; tdIndex < th.size(); tdIndex++) { |
| | | for (int tdIndex = 0; tdIndex < td.size(); tdIndex++) { |
| | | row = sheet.createRow(tdIndex + 1); |
| | | tdObj = th.getJSONObject(tdIndex); |
| | | tdObj = td.getJSONObject(tdIndex); |
| | | for (int thIndex = 0; thIndex < th.size(); thIndex++) { |
| | | row.createCell(thIndex).setCellValue(tdObj.getString(th.getString(thIndex))); |
| | | } |