| | |
| | | private String getType(String type) throws Exception { |
| | | switch (type) { |
| | | case "DOM": |
| | | return "type in ('tif', 'tiff', 'img', 'jp2', 'jpg') and mata_type in (1, 3, 4, 5)"; |
| | | return "type in ('tif', 'tiff', 'img', 'jp2', 'jpg') and mata_type in (1, 2, 3, 4, 5)"; |
| | | case "DEM": |
| | | return "type in ('tif', 'tiff', 'dem') and mata_type = 2"; |
| | | case "Vector": |
| | |
| | | pageSize = Math.max(pageSize, 5); |
| | | |
| | | shuJianService.selectSjColorTables(pageSize, pageIndex, req, res); |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询数简图层") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "port", value = "端口", dataType = "int", paramType = "query", example = "50001") |
| | | }) |
| | | @GetMapping(value = "/selectSjLayers") |
| | | public void selectSjLayers(Integer port, HttpServletRequest req, HttpServletResponse res) { |
| | | shuJianService.selectSjLayers(port, req, res); |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询数简任务状态") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "任务ID", dataType = "int", paramType = "query", example = "10008101") |
| | | }) |
| | | @GetMapping(value = "/selectSjMissionStatus") |
| | | public void selectSjMissionStatus(Integer id, HttpServletRequest req, HttpServletResponse res) { |
| | | shuJianService.selectSjMissionStatus(id, req, res); |
| | | } |
| | | |
| | | @SysLog() |
| | |
| | | if (ue != null) { |
| | | entity.setUpdateUser(ue.getId()); |
| | | } |
| | | if (StringHelper.isEmpty(entity.getGeom())) { |
| | | entity.setGeom("null"); |
| | | } |
| | | |
| | | permsService.clearPermsCache(); |
| | | int count = publishService.update(entity); |