管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-12-24 dd6183027575e9a335a7d4f2d145aec947969a34
src/main/java/com/lf/server/mapper/all/GeomBaseMapper.java
@@ -4,6 +4,8 @@
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import java.util.List;
/**
 * 空间基础Mapper
 * @author WWW
@@ -39,6 +41,23 @@
    public String selectGeometryType(@Param("tab") String tab);
    /**
     * 查询DB中溢出的单位ID
     *
     * @param tab       表名
     * @param depid     单位ID
     * @param geoFilter 空间过滤条件
     * @return 溢出的单位ID
     */
    @Select("<script>" +
            " select depid from ${tab} where depid > 0 and depid != ALL(fn_rec_array(#{depid}, 'dep'))" +
            " <if test='geoFilter != null'>" +
            "  and ${geoFilter}" +
            " </if>" +
            " group by depid" +
            "</script>")
    public List<Integer> selectDbOverflowDep(@Param("tab") String tab, @Param("depid") Integer depid, @Param("geoFilter") String geoFilter);
    /**
     * 更新空间位置
     *
     * @param tab 表名