linwei
2024-01-31 b3b566ebdfed4005aaa513da3d5d2fd3924903cc
src/main/java/org/springblade/modules/grid/mapper/GridMapper.xml
@@ -53,7 +53,7 @@
        left join blade_user bu on bu.id = jgm.user_id and bu.is_deleted = 0
        left join blade_region br ON br.code = jg.community_code
        where jg.is_deleted = 0
        and jp.house_code = #{houseCode}
        and jp.house_code like concat('%',#{houseCode},'%')
        limit 1
    </select>
@@ -182,4 +182,13 @@
        )
    </select>
    <!--根据网格名称,社区名称查询对应的网格-->
    <select id="getGridByNames" resultType="org.springblade.modules.grid.entity.GridEntity">
        select jg.* from jczz_grid jg
        left join blade_region br on br.village_code = jg.community_code
        where jg.is_deleted = 0
        and jg.grid_name = #{gridName}
        and br.name = #{communityName}
    </select>
</mapper>