| | |
| | | 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": |
| | |
| | | @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() |
| | |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "更新数简图层的拉伸方式") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateSjLayerStretch", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> updateSjLayerStretch(@RequestBody PubEntity entity, HttpServletRequest req) { |
| | | try { |
| | | if (null == entity || null == entity.getLayerId()) { |
| | | return fail("实体类为空或图层ID为空", 0); |
| | | } |
| | | |
| | | Integer rows = shuJianService.updateSjLayerStretch(entity); |
| | | |
| | | return success(rows); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | } |