管道基础大数据平台系统开发-【后端】-Server
13693261870
2022-10-20 ff8d6c48e9fa3d4c71b2f8f0edf8235cc590f39d
src/main/java/com/lf/server/mapper/bd/DlgAgnpMapper.java
@@ -1,23 +1,25 @@
package com.lf.server.mapper.bd;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lf.server.entity.bd.DlgAgnp;
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<DlgAgnp> {
public interface DlgAgnpMapper extends BaseMapper<DlgAgnpEntity> {
    /**
     * 查询一条
     * 根据ID查询WKT
     *
     * @param gid
     * @return
     */
    @Select("select gid,gb,name,st_astext(geom) geom from bd.dlg_agnp where gid = #{gid}")
    DlgAgnp selectOne(@Param("gid") Integer gid);
    @Select("select st_astext(geom) geom from bd.dlg_agnp where gid = #{gid}")
    String selectWktById(@Param("gid") Integer gid);
}