From 5a31047fa94abde105ee964a70891dd975403f89 Mon Sep 17 00:00:00 2001
From: 赵士淞 <zhaoss@yhzhg.cn>
Date: Fri, 28 Apr 2023 09:00:59 +0000
Subject: [PATCH] 首页:可查看其他月份统计数据

---
 eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/JobController.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/JobController.java b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/JobController.java
index d904e27..fee61fc 100644
--- a/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/JobController.java
+++ b/eladmin-master/eladmin-system/src/main/java/me/zhengjie/modules/system/rest/JobController.java
@@ -48,7 +48,7 @@
 
     @ApiOperation("导出岗位数据")
     @GetMapping(value = "/download")
-    @PreAuthorize("@el.check('job:list')")
+    @PreAuthorize("@el.check('job:download')")
     public void exportJob(HttpServletResponse response, JobQueryCriteria criteria) throws IOException {
         jobService.download(jobService.queryAll(criteria), response);
     }
@@ -60,6 +60,13 @@
         return new ResponseEntity<>(jobService.queryAll(criteria, pageable),HttpStatus.OK);
     }
 
+    @ApiOperation("查询岗位")
+    @GetMapping(value = "/all")
+    @PreAuthorize("@el.check('job:list','user:list')")
+    public ResponseEntity<Object> queryJob(JobQueryCriteria criteria){
+        return new ResponseEntity<>(jobService.queryAll(criteria),HttpStatus.OK);
+    }
+
     @Log("新增岗位")
     @ApiOperation("新增岗位")
     @PostMapping

--
Gitblit v1.9.3