| | |
| | | package com.ruoyi.app.application.controller; |
| | | |
| | | import java.awt.geom.QuadCurve2D; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | } |
| | | |
| | | @PostMapping("/sendCheckCommandersPosition") |
| | | @ApiOperation("发起查看指挥端位置") |
| | | //@ApiOperation("发起查看指挥端位置") |
| | | public AjaxResult sendCheckCommandersPosition(@RequestBody Map<String,Object> para) { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | } |
| | | |
| | | @PostMapping("/sendCheckSYCarsPosition") |
| | | @ApiOperation("发起查看车辆位置") |
| | | //@ApiOperation("发起查看车辆位置") |
| | | public AjaxResult sendCheckSYCarsPosition(@RequestBody Map<String,Object> para) { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | } |
| | | |
| | | @GetMapping("/getCheckPosition") |
| | | @ApiOperation("指挥端查看位置申请") |
| | | //@ApiOperation("指挥端查看位置申请") |
| | | public AjaxResult getCheckPosition() { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | } |
| | | |
| | | @PutMapping("/approvalCheckPosition") |
| | | @ApiOperation("指挥端审批申请") |
| | | //@ApiOperation("指挥端审批申请") |
| | | public AjaxResult approvalCheckPosition(@RequestBody Map<String,String> para) { |
| | | String commanderId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | } |
| | | |
| | | @GetMapping("/getCheckPositionTrue") |
| | | @ApiOperation("指挥端查看通过的申请") |
| | | //@ApiOperation("指挥端查看通过的申请") |
| | | public AjaxResult getCheckPositionTrue() { |
| | | String commanderId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | } |
| | | |
| | | @GetMapping("/getCheckPositionOwn") |
| | | @ApiOperation("单兵端查看已审批的申请") |
| | | //@ApiOperation("单兵端查看已审批的申请") |
| | | public AjaxResult getCheckPositionOwn() { |
| | | String soilderId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | } |
| | | |
| | | @PutMapping("/approvalCheckPositionOwn") |
| | | @ApiOperation("单兵端审批更改查看标记") |
| | | //@ApiOperation("单兵端审批更改查看标记") |
| | | public AjaxResult approvalCheckPositionOwn(@RequestBody Map<String,String> para) { |
| | | String soilderId = SecurityUtils.getUserId(); |
| | | try{ |
| | |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getSendPositionTrue") |
| | | //@ApiOperation("单兵端查看通过的申请") |
| | | public AjaxResult getSendPositionTrue() { |
| | | String soilderId = SecurityUtils.getUserId(); |
| | | try{ |
| | | Map<String,List<Map<String,Object>>> result = ardAppApplicationService.getSendPositionTrue(soilderId); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getCheckPositionNo") |
| | | //@ApiOperation("PC端查看未审批的申请") |
| | | public AjaxResult getCheckPositionNo() {// |
| | | String commanderId = SecurityUtils.getUserId(); |
| | | try{ |
| | | List<Map<String,Object>> result = ardAppApplicationService.getCheckPositionNo(commanderId); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/getSoilderAndCarPositionByCommanderIdNear") |
| | | //@ApiOperation("PC端指挥端查看单兵端及车辆位置") |
| | | public AjaxResult getSoilderAndCarPositionByCommanderIdNear(@RequestBody Map<String, Double> para) { |
| | | String commanderId = SecurityUtils.getUserId(); |
| | | try{ |
| | | Map<String,Map<String,List<Map<String,Object>>>> result = ardAppApplicationService.getSoilderAndCarPositionByCommanderId(commanderId,para); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | } |