| | |
| | | import com.lf.server.aspect.SysLog; |
| | | import com.lf.server.controller.all.BaseController; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.bd.DlgAgnp; |
| | | import com.lf.server.entity.bd.DlgAgnpEntity; |
| | | import com.lf.server.service.show.ComprehensiveService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectAddrByPage") |
| | | public ResponseMsg<List<DlgAgnp>> selectAddrByPage(String name, Integer pageSize, Integer pageIndex) { |
| | | public ResponseMsg<List<DlgAgnpEntity>> selectAddrByPage(String name, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("每页页数或分页数小于1", null); |
| | | } |
| | | |
| | | Page<DlgAgnp> paged = comprehensiveService.selectAddrByPage(name, pageSize, pageIndex); |
| | | Page<DlgAgnpEntity> paged = comprehensiveService.selectAddrByPage(name, pageSize, pageIndex); |
| | | |
| | | return success(paged.getTotal(), paged.getRecords()); |
| | | } catch (Exception ex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "根据ID查询-地名地址") |
| | | @ApiOperation(value = "根据ID查询WKT-地名地址") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectAddrById") |
| | | public ResponseMsg<DlgAgnp> selectAddrById(Integer id) { |
| | | @GetMapping(value = "/selectWktById") |
| | | public ResponseMsg<String> selectWktById(Integer id) { |
| | | try { |
| | | DlgAgnp entity = comprehensiveService.selectAddrById(id); |
| | | String wkt = comprehensiveService.selectWktById(id); |
| | | |
| | | return success(entity); |
| | | return success(wkt); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |