From 6af3a9c58565a5616105d8c76b1cf91bae36d38a Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期三, 16 六月 2021 21:25:41 +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() != ""'>" +
+ "<if test='pageComMngCarDTO.name != null and pageComMngCarDTO.name != ""'>" +
" 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