| | |
| | | sheetName = "入库报表数据"; |
| | | list = reportInoutPR.listRecord(param); |
| | | List<InoutRecordInExport> exportList = new ArrayList<>(); |
| | | InoutRecordInExport export; |
| | | for (InoutRecord record : list) { |
| | | InoutRecordInExport export = new InoutRecordInExport(); |
| | | export = new InoutRecordInExport(); |
| | | export.setId(record.getId()); |
| | | export.setPlateNum(record.getPlateNum()); |
| | | // 将仓库ID映射为仓库名称 |
| | |
| | | export.setRecordWeight(record.getRecordWeight()); |
| | | export.setCompleteTime(record.getCompleteTime()); |
| | | export.setDeOther(record.getDeOther()); |
| | | export.setUpdateLog(record.getUpdateLog()); |
| | | exportList.add(export); |
| | | } |
| | | ExcelUtil<InoutRecordInExport> util = new ExcelUtil<InoutRecordInExport>(InoutRecordInExport.class); |
| | |
| | | sheetName = "出库报表数据"; |
| | | list = reportInoutPR.listRecord(param); |
| | | List<InoutRecordOutExport> exportList = new ArrayList<>(); |
| | | InoutRecordOutExport export; |
| | | for (InoutRecord record : list) { |
| | | InoutRecordOutExport export = new InoutRecordOutExport(); |
| | | export = new InoutRecordOutExport(); |
| | | export.setId(record.getId()); |
| | | export.setPlateNum(record.getPlateNum()); |
| | | // 将仓库ID映射为仓库名称 |
| | |
| | | export.setRecordWeight(record.getRecordWeight()); |
| | | export.setCompleteTime(record.getCompleteTime()); |
| | | export.setDeOther(record.getDeOther()); |
| | | export.setUpdateLog(record.getUpdateLog()); |
| | | exportList.add(export); |
| | | } |
| | | ExcelUtil<InoutRecordOutExport> util = new ExcelUtil<InoutRecordOutExport>(InoutRecordOutExport.class); |
| | |
| | | sheetName = "入库明细报表数据"; |
| | | list = reportInoutPR.listRecord(param); |
| | | List<InoutRecordDetailInExport> exportList = new ArrayList<>(); |
| | | InoutRecordDetailInExport export; |
| | | for (InoutRecord record : list) { |
| | | InoutRecordDetailInExport export = new InoutRecordDetailInExport(); |
| | | export = new InoutRecordDetailInExport(); |
| | | //收储公司映射 |
| | | String companyNameValue = companyMap.get(record.getCompanyId()); |
| | | export.setCompanyId(companyNameValue != null ? companyNameValue : ""); |
| | |
| | | export.setSettleWeight(record.getSettleWeight()); |
| | | export.setRecordWeight(record.getRecordWeight()); |
| | | export.setCompleteTime(record.getCompleteTime()); |
| | | export.setUpdateLog(record.getUpdateLog()); |
| | | exportList.add(export); |
| | | } |
| | | ExcelUtil<InoutRecordDetailInExport> util = new ExcelUtil<InoutRecordDetailInExport>(InoutRecordDetailInExport.class); |
| | |
| | | sheetName = "出库明细报表数据"; |
| | | list = reportInoutPR.listRecord(param); |
| | | List<InoutRecordDetailOutExport> exportList = new ArrayList<>(); |
| | | InoutRecordDetailOutExport export; |
| | | for (InoutRecord record : list) { |
| | | InoutRecordDetailOutExport export = new InoutRecordDetailOutExport(); |
| | | export = new InoutRecordDetailOutExport(); |
| | | //收储公司映射 |
| | | String companyNameValue = companyMap.get(record.getCompanyId()); |
| | | export.setCompanyId(companyNameValue != null ? companyNameValue : ""); |
| | |
| | | export.setSettleWeight(record.getSettleWeight()); |
| | | export.setRecordWeight(record.getRecordWeight()); |
| | | export.setCompleteTime(record.getCompleteTime()); |
| | | export.setUpdateLog(record.getUpdateLog()); |
| | | exportList.add(export); |
| | | } |
| | | ExcelUtil<InoutRecordDetailOutExport> util = new ExcelUtil<InoutRecordDetailOutExport>(InoutRecordDetailOutExport.class); |