From c68e631c3ef3c105b82bbc9e40118c3301ea9237 Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期一, 28 十二月 2020 17:56:49 +0800 Subject: [PATCH] 广告模块积分模块数据模型建立完成 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComMngStructOtherBuildDAO.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 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..49bc82c 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: 其他建筑 @@ -48,4 +50,14 @@ " </where>" + "</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