package com.lf.server.mapper.all;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Select;
|
|
/**
|
* 空间基础Mapper
|
* @author WWW
|
* @param <T>
|
*/
|
public interface GeomBaseMapper<T> extends BaseMapper<T> {
|
/**
|
* 根据ID查询WKT
|
*
|
* @param gid
|
* @return
|
*/
|
@Select("select st_astext(geom) geom from bd.dlg_agnp where gid = #{gid}")
|
public String selectWktById(@Param("gid") Integer gid);
|
}
|