From 4e769707f2988f71283cac2ff92311c83e4bfe94 Mon Sep 17 00:00:00 2001 From: yishiqihuasheng <1191093413@qq.com> Date: Sun, 23 Apr 2023 08:55:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mapper=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java | 6 +++--- .../src/main/resources/mapper/SignRecordInvoiceMapper.xml | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java b/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java index 0de59864..cb380ddf 100644 --- a/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java +++ b/dxhy-sign/src/main/java/com/dxhy/sign/service/fpqs/impl/SignFpqsServiceImpl.java @@ -3403,7 +3403,7 @@ public class SignFpqsServiceImpl extends MpBaseServiceImpl 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 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"); diff --git a/dxhy-sign/src/main/resources/mapper/SignRecordInvoiceMapper.xml b/dxhy-sign/src/main/resources/mapper/SignRecordInvoiceMapper.xml index c5586dc6..f9a1fe9c 100644 --- a/dxhy-sign/src/main/resources/mapper/SignRecordInvoiceMapper.xml +++ b/dxhy-sign/src/main/resources/mapper/SignRecordInvoiceMapper.xml @@ -15,6 +15,9 @@ + + + @@ -78,7 +81,8 @@