|
|
|
@ -3403,7 +3403,7 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl<SignRecordInvoiceDao, |
|
|
|
|
if (resultList != null && resultList.size() > 0) { |
|
|
|
|
for (int i = 0; i < resultList.size(); i++) { |
|
|
|
|
QsExcelEntity qsExcelEntity = new QsExcelEntity(); |
|
|
|
|
BeanUtils.copyProperties(qsExcelEntity,resultList.get(i)); |
|
|
|
|
BeanUtils.copyProperties(resultList.get(i),qsExcelEntity); |
|
|
|
|
|
|
|
|
|
log.info("导出的发票数据魏:{}",JSONObject.toJSONString(resultList.get(i))); |
|
|
|
|
log.info("totalAmount={}",resultList.get(i).getTotalAmount()); |
|
|
|
@ -3428,7 +3428,7 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl<SignRecordInvoiceDao, |
|
|
|
|
outputStream = new ByteArrayOutputStream(); |
|
|
|
|
// excelWriter = EasyExcel.write(outputStream).build();
|
|
|
|
|
excelWriter = EasyExcel.write(outputStream,QsExcelEntity.class).build(); |
|
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet("sheet1.xlsx").head(QsExcelEntity.class).build(); |
|
|
|
|
WriteSheet writeSheet = EasyExcel.writerSheet("sheet").head(QsExcelEntity.class).build(); |
|
|
|
|
excelWriter.write(excelList, writeSheet); |
|
|
|
|
log.info("excelwrite {}",excelWriter); |
|
|
|
|
excelWriter.finish(); |
|
|
|
@ -3488,7 +3488,7 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl<SignRecordInvoiceDao, |
|
|
|
|
//附件 excel
|
|
|
|
|
List<AttachmentVo> attachmentVoList = Lists.newArrayList(); |
|
|
|
|
AttachmentVo attachmentVo = new AttachmentVo(); |
|
|
|
|
attachmentVo.setName("发票签收"); |
|
|
|
|
attachmentVo.setName("发票签收.xlsx"); |
|
|
|
|
attachmentVo.setFileBytes(xlsxFile); |
|
|
|
|
attachmentVo.setType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); |
|
|
|
|
// attachmentVo.setType("application/msexcel");
|
|
|
|
|