管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-01-31 062a0efe4644edc4e2bbd85f7c12327e5af4dffe
src/main/java/com/lf/server/controller/data/ProjectController.java
@@ -7,6 +7,7 @@
import com.lf.server.controller.all.BaseController;
import com.lf.server.entity.all.ResponseMsg;
import com.lf.server.entity.bs.BsprojectEntity;
import com.lf.server.entity.ctrl.KeyValueEntity;
import com.lf.server.entity.data.DictEntity;
import com.lf.server.entity.data.DirEntity;
import com.lf.server.entity.sys.DepEntity;
@@ -123,6 +124,24 @@
    }
    @SysLog()
    @ApiOperation(value = "查询位置")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "x", value = "X", dataType = "Double", paramType = "query", example = "114.178955"),
            @ApiImplicitParam(name = "y", value = "Y", dataType = "Double", paramType = "query", example = "38.991743")
    })
    @GetMapping(value = "/selectLocation")
    public ResponseMsg<Object> selectLocation(double x, double y) {
        try {
            String wkt = String.format("POINT(%f %f)", x, y);
            List<KeyValueEntity> list = baseQueryService.selectLocation(wkt);
            return success(list);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
        }
    }
    @SysLog()
    @ApiOperation(value = "删除一条")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "gid", value = "ID", dataType = "int", paramType = "query", example = "1")