package com.tairui.app.cim.mapper;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import com.tairui.app.cim.dao.model.ProductionArea;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Select;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* Mapper 接口
|
* </p>
|
*
|
* @author yw
|
* @since 2022-05-21
|
*/
|
@Mapper
|
@Repository
|
public interface ProductionAreaMapper extends BaseMapper<ProductionArea> {
|
|
@Select("select * from production_area ")
|
public List<ProductionArea> listPage();
|
@Select("select name from production_area ")
|
public List<String> listAreaName();
|
@Select("select gid,geom ,ST_AsText(geom) as gwkt from production_area where gid=#{gid} ")
|
public List<ProductionArea> query(int gid);
|
}
|