From 2ced4e05bc384e010836df6f3f0f13dd6a7f2d0f Mon Sep 17 00:00:00 2001
From: DESKTOP-71BH0QO\L、ming <172680469@qq.com>
Date: 星期五, 02 四月 2021 09:41:36 +0800
Subject: [PATCH] fix:修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java
index 7f8acf1..ac58e74 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java
@@ -41,15 +41,15 @@
             " LEFT JOIN sys_user t3 ON t.create_by = t3.user_id " +
             " WHERE t.source =2 " +
             "<if test='pageComMngCarDTO.name != null and pageComMngCarDTO.name.trim() != &quot;&quot;'>" +
-            " and t.user_name LIKE concat( #{pageComMngCarDTO.name}, '%' )  " +
+            " and t.user_name LIKE concat( '%',#{pageComMngCarDTO.name}, '%' )  " +
             " </if> " +
             "<if test='pageComMngCarDTO.communityId != null and pageComMngCarDTO.communityId != 0'>" +
             " and t.community_id = #{pageComMngCarDTO.communityId} " +
             " </if> " +
-            "<if test='pageComMngCarDTO.areaName != null and pageComMngCarDTO.areaName != 0'>" +
-            " and t2.area_name LIKE concat( #{pageComMngCarDTO.areaName}, '%' )  " +
+            "<if test='pageComMngCarDTO.areaName != null'>" +
+            " and t2.area_name LIKE concat( '%',#{pageComMngCarDTO.areaName}, '%' )  " +
             " </if> " +
-            " order by t.create_at desc"+
+            " order by t.create_at desc" +
             "</script>")
     IPage<ComMngCarVO> pageQueryComMngCar(Page page, @Param(value = "pageComMngCarDTO") PageComMngCarDTO pageComMngCarDTO);
 }

--
Gitblit v1.7.1