From 6cbbbc92f623c83e918ef0f2eea8ff82cc920b1b Mon Sep 17 00:00:00 2001 From: DESKTOP-71BH0QO\L、ming <172680469@qq.com> Date: 星期五, 30 四月 2021 10:57:04 +0800 Subject: [PATCH] Add:添加邻里圈删除 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComOpsHouseDAO.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComOpsHouseDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComOpsHouseDAO.java index 2aa60b3..e18010f 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComOpsHouseDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComOpsHouseDAO.java @@ -23,7 +23,7 @@ @Select("select type,name,phone,image_url from sys_user where user_id=#{userId}") LoginUserInfoVO selectUserByUserId(Long userId); - @Select("select user_id from sys_user where user_id=#{name} limit 1") + @Select("select user_id from sys_user where name like concat('%',#{name},'%') limit 1") Long selectUserIdByName(String name); @Select("<script> " + @@ -71,7 +71,10 @@ "AND d.status in (1,3) \n" + " </if> " + "<if test='pageComOpsHouseDTO.houseCommunityName != null and pageComOpsHouseDTO.houseCommunityName.trim() != ""'>" + - " and d.`house_community_name` LIKE concat( #{pageComOpsHouseDTO.houseCommunityName}, '%' ) \n" + + " and (" + + " d.`house_community_name` LIKE concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) " + + " or d.title like concat( '%', #{pageComOpsHouseDTO.houseCommunityName}, '%' ) " + + " ) \n" + " </if> " + "<if test='pageComOpsHouseDTO.mobile != null and pageComOpsHouseDTO.mobile.trim() != ""'>" + " and d.`mobile` LIKE concat( #{pageComOpsHouseDTO.mobile}, '%' ) \n" + -- Gitblit v1.7.1