linwe
2024-05-15 047ced202f052d70c50f4365b2d86810de076489
src/main/java/org/springblade/modules/police/mapper/PoliceAffairsGridMapper.xml
@@ -29,5 +29,18 @@
        select * from jczz_police_affairs_grid where is_deleted = 0
    </select>
    <!--判断该点在哪个警务网格-->
    <select id="spatialAnalysis" resultType="org.springblade.modules.police.entity.PoliceAffairsGridEntity">
        SELECT * FROM jczz_police_affairs_grid
        WHERE is_deleted = 0
        and ST_Intersects(geom, ST_GeomFromText(${point},0))
    </select>
    <!--查询对应的社区编号-->
    <select id="getCommunityCodeListByUserId" resultType="java.lang.String">
        SELECT community_code FROM jczz_police_affairs_grid
        WHERE is_deleted = 0
        and police_user_id like concat('%',#{userId},'%')
    </select>
</mapper>