From 54ad966d0b142c97fc659263b51d1ea5d7b5c7c6 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期五, 28 五月 2021 16:17:08 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngCarDAO.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 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 3b4505c..c06bc9a 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
@@ -43,9 +43,12 @@
             " 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 1=1" +
-            "<if test='pageComMngCarDTO.name != null and pageComMngCarDTO.name.trim() != &quot;&quot;'>" +
+            "<if test='pageComMngCarDTO.name != null and pageComMngCarDTO.name != &quot;&quot;'>" +
             " and t.user_name LIKE concat( '%',#{pageComMngCarDTO.name}, '%' )  " +
             " </if> " +
+            "<if test='pageComMngCarDTO.villageId != null'>" +
+            " and t.area_id = #{pageComMngCarDTO.villageId} " +
+            " </if> " +
             "<if test='pageComMngCarDTO.communityId != null and pageComMngCarDTO.communityId != 0'>" +
             " and t.community_id = #{pageComMngCarDTO.communityId} " +
             " </if> " +

--
Gitblit v1.7.1