linwe
2024-05-29 c10d6358b9f014375a13821465bc978d0c0da22e
src/main/java/org/springblade/modules/community/mapper/CommunityMapper.xml
@@ -24,7 +24,16 @@
    <!--自定义分页列表查询-->
    <select id="selectCommunityPage" resultType="org.springblade.modules.community.vo.CommunityVO">
        select
        jc.*,
        jc.id,
        jc.street_code,
        jc.code,
        jc.name,
        jc.pic_url,
        jc.address,
        jc.res_police_user_id,
        jc.lng,
        jc.lat,
        jc.remark,
        br.town_name townName
        from jczz_community jc
        left join blade_region br on br.code = jc.code
@@ -62,5 +71,25 @@
        where is_deleted = 0 and res_police_user_id like concat('%',#{userId},'%')
    </select>
    <!--自定义分页列表查询-->
    <select id="getDetail" resultType="org.springblade.modules.community.vo.CommunityVO">
        select
        jc.id,
        jc.street_code,
        jc.code,
        jc.name,
        jc.pic_url,
        jc.address,
        jc.res_police_user_id,
        jc.lng,
        jc.lat,
        jc.remark,
        br.town_name townName
        from jczz_community jc
        left join blade_region br on br.code = jc.code
        where jc.is_deleted = 0
        and jc.id = #{community.id}
    </select>
</mapper>