From de91c84954157bb9f8b6d938cbe0b1b51fb6e65d Mon Sep 17 00:00:00 2001 From: CeDo <cedoogle@gmail.com> Date: 星期五, 07 五月 2021 15:23:57 +0800 Subject: [PATCH] bugfixed:新增便民服务商家 报错 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java index 07c49f2..e419dd0 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java @@ -9,6 +9,8 @@ import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; +import java.util.List; + /** * @program: springcloud_k8s_panzhihuazhihuishequ * @description: 其他建筑 @@ -43,9 +45,20 @@ "join com_mng_struct_build_type t on b.type_id=t.id\n" + " <where>" + "<if test='comMngStructOtherBuildVO.name != null and comMngStructOtherBuildVO.name.trim() != ""'>" + - "b.name = #{comMngStructOtherBuildVO.name}"+ + "b.name like concat(#{comMngStructOtherBuildVO.name},'%') "+ " </if> " + " </where>" + + " order by b.create_at desc" + "</script>") IPage<ComMngStructOtherBuildVO> pageOtherBuild(Page page, @Param("comMngStructOtherBuildVO") ComMngStructOtherBuildVO comMngStructOtherBuildVO); + + @Select("SELECT\n" + + "b.type_id \n" + + "FROM\n" + + "com_mng_struct_other_build b\n" + + "WHERE\n" + + "b.community_id = #{communityId}\n" + + "GROUP BY\n" + + "b.type_id") + List<Long> selectAllBuildTypeIds(Long communityId); } -- Gitblit v1.7.1