| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询根目录") |
| | | @GetMapping(value = "/selectDirRoot") |
| | | public ResponseMsg<List<DirEntity>> selectDirRoot() { |
| | | @ApiOperation(value = "查询项目") |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<List<DirEntity>> selectProject() { |
| | | try { |
| | | List<DirEntity> list = dirService.selectDirRoot(); |
| | | List<DirEntity> list = dirService.selectProject(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "分页查询并返回记录数") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "dirid", value = "目录ID", dataType = "String", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<Object> selectByPageAndCount(Integer dirid, Integer pageSize, Integer pageIndex) { |
| | | public ResponseMsg<Object> selectByPageAndCount(String dirid, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | QueryWrapper<BsprojectEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.select("ST_AsText(geom) as geom, *"); |