管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-20 d7e3011a44a85f32aaab975f603f17a9bec198c5
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 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);
}