From 8d2fdc29e9bbe652bba73e4a698edcdf89acf983 Mon Sep 17 00:00:00 2001
From: luodangjia <luodangjia>
Date: 星期五, 23 八月 2024 10:13:35 +0800
Subject: [PATCH] 8.23

---
 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 b9c85a8..376534d 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
@@ -91,7 +91,7 @@
 
     @ApiOperation(tags = {"后台-申请表单-申请建桩"},value = "导出")
     @PutMapping(value = "/export")
-    public R export(HttpServletResponse response) {
+    public R export(String landlordPhone,HttpServletResponse response) {
         try {
         response.setCharacterEncoding(Constants.UTF8);
         response.setContentType("application/vnd.ms-excel");
@@ -102,7 +102,7 @@
             return R.fail("excel导出失败!");
         }
         try {
-            List<TApplyChargingPile> list = applyChargingPileService.lambdaQuery().last("limit 1").list();
+            List<TApplyChargingPile> list = applyChargingPileService.lambdaQuery().like(landlordPhone != null && !landlordPhone.equals(""), TApplyChargingPile::getLandlordPhone, landlordPhone).list();
 
             List<TApplyChargingPileExportDto> exportDtos =new ArrayList<>();
             for (TApplyChargingPile tApplyChargingPile : list) {

--
Gitblit v1.7.1