| | |
| | | return AjaxResult.success(result); |
| | | } |
| | | |
| | | @PostMapping("/sendCheckCommandersPosition") |
| | | @ApiOperation("发起查看指挥端位置") |
| | | public AjaxResult sendCheckCommandersPosition(@RequestBody Map<String,Object> para) { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | @GetMapping("/getOnlineCommanderPosition") |
| | | @ApiOperation("单兵端查看已通过审批的在线指挥端位置") |
| | | public AjaxResult getOnlineCommanderPosition() { |
| | | String soilderId = SecurityUtils.getUserId(); |
| | | try{ |
| | | ardAppPositionService.sendCheckCommandersPosition(usersId,para); |
| | | return AjaxResult.success(); |
| | | }catch(Exception e){ |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/sendCheckSYCarsPosition") |
| | | @ApiOperation("发起查看车辆位置") |
| | | public AjaxResult sendCheckSYCarsPosition(@RequestBody Map<String,Object> para) { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | try{ |
| | | ardAppPositionService.sendCheckSYCarsPosition(usersId,para); |
| | | return AjaxResult.success(); |
| | | }catch(Exception e){ |
| | | return AjaxResult.error(); |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getCheckCommandersPosition") |
| | | @ApiOperation("指挥端查看指挥端位置申请") |
| | | public AjaxResult getCheckCommandersPosition() { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | try{ |
| | | List<Map<String,Object>> result = ardAppPositionService.getCheckCommandersPosition(usersId); |
| | | List<Map<String,Object>> result = ardAppPositionService.getOnlineCommanderPosition(soilderId); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getCheckSYCarsPosition") |
| | | @ApiOperation("指挥端查看车辆位置申请") |
| | | public AjaxResult getCheckSYCarsPosition() { |
| | | String usersId = SecurityUtils.getUserId(); |
| | | @GetMapping("/getAPPPositionByUserIdAndTime") |
| | | @ApiOperation("查看APP历史位置") |
| | | public AjaxResult getAPPPositionByUserIdAndTime(@RequestBody Map<String,String> para) { |
| | | try{ |
| | | List<Map<String,Object>> result = ardAppPositionService.getCheckSYCarsPosition(usersId); |
| | | List<ArdAppPosition> result = ardAppPositionService.getAPPPositionByUserIdAndTime(para); |
| | | return AjaxResult.success(result); |
| | | }catch(Exception e){ |
| | | e.printStackTrace(); |
| | |
| | | } |
| | | } |
| | | |
| | | @GetMapping("/getOnlineAPPSoilderByCommanderId") |
| | | public AjaxResult getOnlineAPPSoilderByCommanderId() { |
| | | String userId = SecurityUtils.getUserId(); |
| | | return success(ardAppPositionService.getOnlineAPPSoilderByCommanderId(userId)); |
| | | } |
| | | |
| | | } |