AdaKing88
2023-08-21 23258c585a626b15d770459870a8b24763cf540c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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);
}