管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-06 f52d5579915db640078c0ff2cc0cac1beef05bc5
src/main/java/com/lf/server/mapper/all/GeomBaseMapper.java
@@ -19,7 +19,7 @@
     * @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);
    /**
@@ -65,6 +65,6 @@
     * @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);
}