zhangnaisong
2024-01-29 f28e4b29ec8e8d2246ef0c634661d1b062365d71
ard-work/src/main/java/com/ruoyi/app/application/controller/ArdAppApplicationController.java
@@ -197,4 +197,30 @@
            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();
        }
    }
}