From b827b2710c1f9ac64fe8879f08e1008a8647966a Mon Sep 17 00:00:00 2001 From: puhanshu <a9236326> Date: 星期四, 07 七月 2022 13:42:12 +0800 Subject: [PATCH] 大屏数据调整 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java index bf0c458..f53c7b3 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java @@ -82,7 +82,7 @@ @Select("<script> select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName " + "from com_act as ca " + "left join com_street as cs on cs.street_id = ca.street_id " + - "where ca.state = 0 and ca.name like '%#{name}%' <if test='areaCode !=null'> and cs.area_code = #{areaCode} </if> </script> ") + "where ca.state = 0 and ca.name like concat('%',#{name},'%') <if test='areaCode !=null and areaCode !=""'> and cs.area_code = #{areaCode} </if> </script> ") List<CommunitySwitchAllAppletsVO> getCommunityListByName(@Param("name") String name,@Param("areaCode") String areaCode); @Select("SELECT c.community_id, c.`name`, c.street_id, cs.`name` as streetName," + @@ -92,9 +92,9 @@ "HAVING distance >= 0 and distance <= #{communityDTO.distance} ORDER BY distance ASC") List<CommunitySwitchAllAppletsVO> getCommunityListByNearby(@Param("communityDTO") SearchCommunityDTO communityDTO); - @Select("<script> select community_id,name,lng,lat from com_act where state = 0 <if test='areaCode !=null'> and area_code = #{areaCode} </if> </script>") + @Select("<script> select community_id,name,lng,lat from com_act where state = 0 <if test='areaCode !=null and areaCode !=""'> and area_code = #{areaCode} </if> </script>") List<EventGridCommunityAdminVO> getWestCommunityLists(@Param("areaCode") String areCode); - @Select("select account,plaintext_password as password from com_act where community_id = ${communityId}") + @Select("select account,plaintext_password as password from com_act where community_id = #{communityId}") ComActPasswordVo getCommunityPassword(@Param("communityId") Long communityId); } -- Gitblit v1.7.1