| | |
| | | * @param gid GID |
| | | * @return WKT |
| | | */ |
| | | @Select("select ST_AsText(geom) geom from ${tab} where gid = #{gid}") |
| | | @Select("select ST_AsText(geom) geom from ${tab} where gid = #{gid} limit 1") |
| | | public String selectWktById(@Param("tab") String tab, @Param("gid") Integer gid); |
| | | |
| | | /** |
| | |
| | | * @param wkt WKT |
| | | * @return 影响行数 |
| | | */ |
| | | @Update("update ${tab} set geom = ST_GeomFromText('${wkt}') where gid = #{gid}") |
| | | @Update("update ${tab} set geom = ST_GeomFromText('${wkt}') where gid = #{gid} limit 1") |
| | | public Integer updateGeom(@Param("tab") String tab, @Param("gid") Integer gid, @Param("wkt") String wkt); |
| | | } |