From 4a9a9fa60f52be1e7c91f01df54b3cbae8c11d6c Mon Sep 17 00:00:00 2001
From: baizonghao <1719256278@qq.com>
Date: 星期日, 23 四月 2023 13:11:21 +0800
Subject: [PATCH] 用户导出

---
 src/main/java/com/example/jz/controller/PublicityController.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/example/jz/controller/PublicityController.java b/src/main/java/com/example/jz/controller/PublicityController.java
index 7a24eb8..83ca648 100644
--- a/src/main/java/com/example/jz/controller/PublicityController.java
+++ b/src/main/java/com/example/jz/controller/PublicityController.java
@@ -56,9 +56,15 @@
         ArrayList<PublicityVo> publicityVos = new ArrayList<>();
         PageParam<Publicity> publicityPageParam ;
         if (publicity.getStatus()!=null ){
-            publicityPageParam = publicityService.page(page, new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()),"publicity_title",publicity.getPublicityTitle()).eq("status",publicity.getStatus()).orderByDesc("ctime"));
+            publicityPageParam = publicityService.page(page,
+                    new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()),
+                            "publicity_title",
+                            publicity.getPublicityTitle()).eq("status",publicity.getStatus()).orderByDesc("ctime"));
         }else {
-            publicityPageParam = publicityService.page(page, new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()),"publicity_title",publicity.getPublicityTitle()).orderByDesc("ctime"));
+            publicityPageParam = publicityService.page(page,
+                    new QueryWrapper<Publicity>().like(StringUtils.isNotBlank(publicity.getPublicityTitle()),
+                            "publicity_title",
+                            publicity.getPublicityTitle()).orderByDesc("ctime"));
         }
         publicityPageParam.getRecords().forEach(item->{
             PublicityVo publicityVo = new PublicityVo();

--
Gitblit v1.8.0