| | |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.data.ExportDataDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.reportFee.ReportFeeMonthStatisticsDto; |
| | | import com.java110.intf.report.IQueryPayFeeDetailInnerServiceSMO; |
| | | import com.java110.job.export.IExportDataAdapt; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticsDtos = (List<ReportFeeMonthStatisticsDto>) resultVo.getData(); |
| | | Row row = null; |
| | | JSONObject dataObj = null; |
| | | ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = null; |
| | | Date endDate = null; |
| | | for (int roomIndex = 0; roomIndex < reportFeeMonthStatisticsDtos.size(); roomIndex++) { |
| | | row = sheet.createRow(roomIndex + step + 1); |
| | | reportFeeMonthStatisticsDto = reportFeeMonthStatisticsDtos.get(roomIndex); |
| | | dataObj = JSONObject.parseObject(JSONObject.toJSONString(reportFeeMonthStatisticsDtos.get(roomIndex))); |
| | | row.createCell(0).setCellValue(dataObj.getString("oId")); |
| | | if (!StringUtil.isEmpty(dataObj.getString("payerObjType")) && dataObj.getString("payerObjType").equals("3333")) { //房屋 |
| | |
| | | } else { |
| | | row.createCell(1).setCellValue(dataObj.getString("objName")); |
| | | } |
| | | endDate = DateUtil.getDateFromStringB(dataObj.getString("endTime")); |
| | | //todo 如果不是一次性费用结束时间建1 |
| | | if(!StringUtil.isEmpty(reportFeeMonthStatisticsDto.getFeeFlag()) |
| | | && !FeeDto.FEE_FLAG_ONCE.equals(reportFeeMonthStatisticsDto.getFeeFlag())){ |
| | | endDate = DateUtil.stepDay(endDate,-1); |
| | | } |
| | | |
| | | row.createCell(2).setCellValue(dataObj.getString("ownerName")); |
| | | row.createCell(3).setCellValue(dataObj.getString("feeName")); |
| | | row.createCell(4).setCellValue(dataObj.getString("feeTypeCdName")); |
| | | row.createCell(5).setCellValue(dataObj.getString("stateName")); |
| | | row.createCell(6).setCellValue(dataObj.getString("primeRate")); |
| | | row.createCell(7).setCellValue(dataObj.getString("startTime")); |
| | | row.createCell(8).setCellValue(dataObj.getString("endTime")); |
| | | row.createCell(9).setCellValue(DateUtil.getFormatTimeString(dataObj.getDate("createTime"), DateUtil.DATE_FORMATE_STRING_A)); |
| | | row.createCell(8).setCellValue(DateUtil.getFormatTimeStringB(endDate)); |
| | | row.createCell(9).setCellValue(DateUtil.getFormatTimeStringA(dataObj.getDate("createTime"))); |
| | | row.createCell(10).setCellValue(dataObj.getDouble("receivableAmount")); |
| | | row.createCell(11).setCellValue(dataObj.getDouble("receivedAmount")); |
| | | row.createCell(12).setCellValue(dataObj.getDouble("preferentialAmount")); |