| | |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.apache.ibatis.annotations.Select; |
| | | import org.apache.ibatis.annotations.Update; |
| | | |
| | | /** |
| | | * 空间基础Mapper |
| | |
| | | */ |
| | | @Select("select ST_SRID(geom) from ${tab} limit 1") |
| | | public Integer selectSrid(@Param("tab") String tab); |
| | | |
| | | /** |
| | | * 更新空间位置 |
| | | * |
| | | * @param tab 表名 |
| | | * @param gid GID |
| | | * @param geom 空间位置 |
| | | * @return 影响行数 |
| | | */ |
| | | @Update("update ${tab} set geom = ST_GeomFromText('${geom}') where gid = #{gid}") |
| | | public Integer updateGeom(@Param("tab") String tab, @Param("gid") Integer gid, @Param("geom") String geom); |
| | | } |