燕山石化溯源三维电子沙盘-【后端】-服务
13693261870
2023-04-25 ecd0ef5c6a78ac091b3fc2d42035cd0582c93a3f
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
30
31
32
33
34
35
36
37
38
package com.yssh.controller;
 
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
 
import java.io.IOException;
 
import org.geotools.geojson.geom.GeometryJSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
import com.yssh.service.IExpPointServer;
import com.yssh.utils.Result;
 
@Api(tags="勘探点")
@RestController
@RequestMapping("/exp")
@SuppressWarnings("rawtypes")
public class ExpPointController {
    
    @Autowired
    private IExpPointServer expPointServer;
    
    @GetMapping("/list")
    @ApiOperation(value = "获取所有勘探点", notes = "获取所有勘探点")
    public Result getList(){
        GeometryJSON geo = null;
        try {
            geo = expPointServer.selectList();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return Result.OK(geo);
    }
 
}