| | |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询Las文件坐标系ID") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "元数据ID集合", dataType = "Integer[]", paramType = "query", example = "10285, 10481, 10456, 10483") |
| | | }) |
| | | @GetMapping(value = "/selectLasCs") |
| | | public ResponseMsg<Object> selectLasCs(@RequestParam(value = "ids[]") Integer[] ids, HttpServletRequest req) { |
| | | try { |
| | | if (null == ids || ids.length == 0) { |
| | | return fail("元数据ID集合不能为空"); |
| | | } |
| | | |
| | | PubEntity entity = new PubEntity(); |
| | | entity.setIds(Arrays.asList(ids)); |
| | | entity.setDircode("00"); |
| | | entity.setToken(WebHelper.getToken(req)); |
| | | |
| | | List<Integer> list = publishService.selectLasCs(entity, "/Convert/ReadLasCs", req); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), null); |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "插入发布数据") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "PubEntity", paramType = "body") |