From 2d1daa178aa08842d51df3084a011323603ad36b Mon Sep 17 00:00:00 2001
From: xuhy <3313886187@qq.com>
Date: 星期五, 23 八月 2024 10:36:42 +0800
Subject: [PATCH] 站点修改

---
 ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java
index 01c9bf1..fc6ee66 100644
--- a/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java
+++ b/ruoyi-service/ruoyi-chargingPile/src/main/java/com/ruoyi/chargingPile/controller/TApplyChargingPileController.java
@@ -98,7 +98,7 @@
             return R.fail("excel导出失败!");
         }
         try {
-            List<TApplyChargingPile> list = applyChargingPileService.lambdaQuery().list();
+            List<TApplyChargingPile> list = applyChargingPileService.lambdaQuery().last("limit 1").list();
 
             List<TApplyChargingPileExportDto> exportDtos =new ArrayList<>();
             for (TApplyChargingPile tApplyChargingPile : list) {
@@ -123,7 +123,7 @@
             // 自动释放资源
             try (ExcelWriter excelWriter = excelWriterBuilder.withTemplate(stream).build()) {
                 WriteSheet writeSheet = EasyExcelFactory.writerSheet().build();
-                excelWriter.fill(list, writeSheet);
+                excelWriter.fill(exportDtos, writeSheet);
                 excelWriter.finish();
             } catch (Exception e) {
                 return R.fail("excel导出失败!");

--
Gitblit v1.7.1