From 50e1eb020efe8da670b718d865fa4c1eaa61ee7d Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期四, 20 五月 2021 19:51:09 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java |   11 +++++++----
 1 files changed, 7 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 5ed6b81..6166fb1 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
@@ -27,11 +27,11 @@
             " t2.area_name AS areaName, " +
             " t.user_id userId, " +
             " t.user_name AS userName, " +
+            " t.address, " +
             " t.mobile, " +
             " t.plate_num AS plateNum, " +
             " t.brand, " +
             " t.color, " +
-            " t.model, " +
             " t.create_at AS createAt, " +
             " t3.`name` AS createBy  " +
             "FROM " +
@@ -39,14 +39,17 @@
             " LEFT JOIN com_act t1 ON t.community_id = t1.community_id " +
             " LEFT JOIN com_mng_struct_area t2 ON t2.id = t.area_id " +
             " LEFT JOIN sys_user t3 ON t.create_by = t3.user_id " +
-            " WHERE t.source =2 " +
+            " WHERE 1=1" +
             "<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> " +
-            " order by t.create_at desc"+
+            "<if test='pageComMngCarDTO.areaName != null'>" +
+            " and t2.area_name LIKE concat( '%',#{pageComMngCarDTO.areaName}, '%' )  " +
+            " </if> " +
+            " order by t.create_at desc" +
             "</script>")
     IPage<ComMngCarVO> pageQueryComMngCar(Page page, @Param(value = "pageComMngCarDTO") PageComMngCarDTO pageComMngCarDTO);
 }

--
Gitblit v1.7.1