| | |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 空间基础Mapper |
| | | * @author WWW |
| | |
| | | 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 表名 |