package com.panzhihua.service_community.dao; import java.util.List; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.panzhihua.common.model.vos.community.ComMngStructOtherBuildVO; import com.panzhihua.service_community.model.dos.ComMngStructOtherBuildDO; /** * @program: springcloud_k8s_panzhihuazhihuishequ * @description: 其他建筑 * @author: huang.hongfa weixin hhf9596 qq 959656820 * @create: 2020-12-14 17:21 **/ @Mapper public interface ComMngStructOtherBuildDAO extends BaseMapper { // @Select("") @Select("") IPage 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 selectAllBuildTypeIds(Long communityId); }