管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-25 445acb921e3886b2c2012e5343c4e4c7ad5bc6e9
src/main/java/com/lf/server/mapper/all/GeomBaseMapper.java
@@ -2,6 +2,7 @@
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
/**
 * 空间基础Mapper
@@ -27,4 +28,15 @@
     */
    @Select("select ST_SRID(geom) from ${tab} limit 1")
    public Integer selectSrid(@Param("tab") String tab);
    /**
     * 更新空间位置
     *
     * @param tab 表名
     * @param gid GID
     * @param wkt WKT
     * @return 影响行数
     */
    @Update("update ${tab} set geom = ST_GeomFromText('${wkt}') where gid = #{gid}")
    public Integer updateGeom(@Param("tab") String tab, @Param("gid") Integer gid, @Param("wkt") String wkt);
}