package com.lf.server.mapper.bd; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.lf.server.entity.bd.DlgAgnpEntity; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; /** * DlgAgnp * @author WWW */ @Mapper @Repository public interface DlgAgnpMapper extends BaseMapper { /** * 根据ID查询WKT * * @param gid * @return */ @Select("select st_astext(geom) geom from bd.dlg_agnp where gid = #{gid}") String selectWktById(@Param("gid") Integer gid); }