Przeglądaj źródła

去除后端接口权限

lamphua 10 miesięcy temu
rodzic
commit
2810dd5008

+ 8
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java Wyświetl plik

3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
 import org.springframework.beans.factory.annotation.Autowired;
5
 import org.springframework.beans.factory.annotation.Autowired;
6
-import org.springframework.security.access.prepost.PreAuthorize;
6
+//import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.validation.annotation.Validated;
7
 import org.springframework.validation.annotation.Validated;
8
 import org.springframework.web.bind.annotation.DeleteMapping;
8
 import org.springframework.web.bind.annotation.DeleteMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
37
     /**
37
     /**
38
      * 获取参数配置列表
38
      * 获取参数配置列表
39
      */
39
      */
40
-    @PreAuthorize("@ss.hasPermi('system:config:list')")
40
+//    @PreAuthorize("@ss.hasPermi('system:config:list')")
41
     @GetMapping("/list")
41
     @GetMapping("/list")
42
     public TableDataInfo list(SysConfig config)
42
     public TableDataInfo list(SysConfig config)
43
     {
43
     {
47
     }
47
     }
48
 
48
 
49
     @Log(title = "参数管理", businessType = BusinessType.EXPORT)
49
     @Log(title = "参数管理", businessType = BusinessType.EXPORT)
50
-    @PreAuthorize("@ss.hasPermi('system:config:export')")
50
+//    @PreAuthorize("@ss.hasPermi('system:config:export')")
51
     @PostMapping("/export")
51
     @PostMapping("/export")
52
     public void export(HttpServletResponse response, SysConfig config)
52
     public void export(HttpServletResponse response, SysConfig config)
53
     {
53
     {
59
     /**
59
     /**
60
      * 根据参数编号获取详细信息
60
      * 根据参数编号获取详细信息
61
      */
61
      */
62
-    @PreAuthorize("@ss.hasPermi('system:config:query')")
62
+//    @PreAuthorize("@ss.hasPermi('system:config:query')")
63
     @GetMapping(value = "/{configId}")
63
     @GetMapping(value = "/{configId}")
64
     public AjaxResult getInfo(@PathVariable Long configId)
64
     public AjaxResult getInfo(@PathVariable Long configId)
65
     {
65
     {
78
     /**
78
     /**
79
      * 新增参数配置
79
      * 新增参数配置
80
      */
80
      */
81
-    @PreAuthorize("@ss.hasPermi('system:config:add')")
81
+//    @PreAuthorize("@ss.hasPermi('system:config:add')")
82
     @Log(title = "参数管理", businessType = BusinessType.INSERT)
82
     @Log(title = "参数管理", businessType = BusinessType.INSERT)
83
     @PostMapping
83
     @PostMapping
84
     public AjaxResult add(@Validated @RequestBody SysConfig config)
84
     public AjaxResult add(@Validated @RequestBody SysConfig config)
94
     /**
94
     /**
95
      * 修改参数配置
95
      * 修改参数配置
96
      */
96
      */
97
-    @PreAuthorize("@ss.hasPermi('system:config:edit')")
97
+//    @PreAuthorize("@ss.hasPermi('system:config:edit')")
98
     @Log(title = "参数管理", businessType = BusinessType.UPDATE)
98
     @Log(title = "参数管理", businessType = BusinessType.UPDATE)
99
     @PutMapping
99
     @PutMapping
100
     public AjaxResult edit(@Validated @RequestBody SysConfig config)
100
     public AjaxResult edit(@Validated @RequestBody SysConfig config)
110
     /**
110
     /**
111
      * 删除参数配置
111
      * 删除参数配置
112
      */
112
      */
113
-    @PreAuthorize("@ss.hasPermi('system:config:remove')")
113
+//    @PreAuthorize("@ss.hasPermi('system:config:remove')")
114
     @Log(title = "参数管理", businessType = BusinessType.DELETE)
114
     @Log(title = "参数管理", businessType = BusinessType.DELETE)
115
     @DeleteMapping("/{configIds}")
115
     @DeleteMapping("/{configIds}")
116
     public AjaxResult remove(@PathVariable Long[] configIds)
116
     public AjaxResult remove(@PathVariable Long[] configIds)
122
     /**
122
     /**
123
      * 刷新参数缓存
123
      * 刷新参数缓存
124
      */
124
      */
125
-    @PreAuthorize("@ss.hasPermi('system:config:remove')")
125
+//    @PreAuthorize("@ss.hasPermi('system:config:remove')")
126
     @Log(title = "参数管理", businessType = BusinessType.CLEAN)
126
     @Log(title = "参数管理", businessType = BusinessType.CLEAN)
127
     @DeleteMapping("/refreshCache")
127
     @DeleteMapping("/refreshCache")
128
     public AjaxResult refreshCache()
128
     public AjaxResult refreshCache()

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java Wyświetl plik

3
 import java.util.List;
3
 import java.util.List;
4
 import org.apache.commons.lang3.ArrayUtils;
4
 import org.apache.commons.lang3.ArrayUtils;
5
 import org.springframework.beans.factory.annotation.Autowired;
5
 import org.springframework.beans.factory.annotation.Autowired;
6
-import org.springframework.security.access.prepost.PreAuthorize;
6
+//import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.validation.annotation.Validated;
7
 import org.springframework.validation.annotation.Validated;
8
 import org.springframework.web.bind.annotation.DeleteMapping;
8
 import org.springframework.web.bind.annotation.DeleteMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
37
     /**
37
     /**
38
      * 获取部门列表
38
      * 获取部门列表
39
      */
39
      */
40
-    @PreAuthorize("@ss.hasPermi('system:dept:list')")
40
+//    @PreAuthorize("@ss.hasPermi('system:dept:list')")
41
     @GetMapping("/list")
41
     @GetMapping("/list")
42
     public AjaxResult list(SysDept dept)
42
     public AjaxResult list(SysDept dept)
43
     {
43
     {
48
     /**
48
     /**
49
      * 查询部门列表(排除节点)
49
      * 查询部门列表(排除节点)
50
      */
50
      */
51
-    @PreAuthorize("@ss.hasPermi('system:dept:list')")
51
+//    @PreAuthorize("@ss.hasPermi('system:dept:list')")
52
     @GetMapping("/list/exclude/{deptId}")
52
     @GetMapping("/list/exclude/{deptId}")
53
     public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId)
53
     public AjaxResult excludeChild(@PathVariable(value = "deptId", required = false) Long deptId)
54
     {
54
     {
70
     /**
70
     /**
71
      * 根据部门编号获取详细信息
71
      * 根据部门编号获取详细信息
72
      */
72
      */
73
-    @PreAuthorize("@ss.hasPermi('system:dept:query')")
73
+//    @PreAuthorize("@ss.hasPermi('system:dept:query')")
74
     @GetMapping(value = "/{deptId}")
74
     @GetMapping(value = "/{deptId}")
75
     public AjaxResult getInfo(@PathVariable Long deptId)
75
     public AjaxResult getInfo(@PathVariable Long deptId)
76
     {
76
     {
81
     /**
81
     /**
82
      * 新增部门
82
      * 新增部门
83
      */
83
      */
84
-    @PreAuthorize("@ss.hasPermi('system:dept:add')")
84
+//    @PreAuthorize("@ss.hasPermi('system:dept:add')")
85
     @Log(title = "部门管理", businessType = BusinessType.INSERT)
85
     @Log(title = "部门管理", businessType = BusinessType.INSERT)
86
     @PostMapping
86
     @PostMapping
87
     public AjaxResult add(@Validated @RequestBody SysDept dept)
87
     public AjaxResult add(@Validated @RequestBody SysDept dept)
97
     /**
97
     /**
98
      * 修改部门
98
      * 修改部门
99
      */
99
      */
100
-    @PreAuthorize("@ss.hasPermi('system:dept:edit')")
100
+//    @PreAuthorize("@ss.hasPermi('system:dept:edit')")
101
     @Log(title = "部门管理", businessType = BusinessType.UPDATE)
101
     @Log(title = "部门管理", businessType = BusinessType.UPDATE)
102
     @PutMapping
102
     @PutMapping
103
     public AjaxResult edit(@Validated @RequestBody SysDept dept)
103
     public AjaxResult edit(@Validated @RequestBody SysDept dept)
123
     /**
123
     /**
124
      * 删除部门
124
      * 删除部门
125
      */
125
      */
126
-    @PreAuthorize("@ss.hasPermi('system:dept:remove')")
126
+//    @PreAuthorize("@ss.hasPermi('system:dept:remove')")
127
     @Log(title = "部门管理", businessType = BusinessType.DELETE)
127
     @Log(title = "部门管理", businessType = BusinessType.DELETE)
128
     @DeleteMapping("/{deptId}")
128
     @DeleteMapping("/{deptId}")
129
     public AjaxResult remove(@PathVariable Long deptId)
129
     public AjaxResult remove(@PathVariable Long deptId)

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java Wyświetl plik

4
 import java.util.List;
4
 import java.util.List;
5
 import javax.servlet.http.HttpServletResponse;
5
 import javax.servlet.http.HttpServletResponse;
6
 import org.springframework.beans.factory.annotation.Autowired;
6
 import org.springframework.beans.factory.annotation.Autowired;
7
-import org.springframework.security.access.prepost.PreAuthorize;
7
+//import org.springframework.security.access.prepost.PreAuthorize;
8
 import org.springframework.validation.annotation.Validated;
8
 import org.springframework.validation.annotation.Validated;
9
 import org.springframework.web.bind.annotation.DeleteMapping;
9
 import org.springframework.web.bind.annotation.DeleteMapping;
10
 import org.springframework.web.bind.annotation.GetMapping;
10
 import org.springframework.web.bind.annotation.GetMapping;
40
     @Autowired
40
     @Autowired
41
     private ISysDictTypeService dictTypeService;
41
     private ISysDictTypeService dictTypeService;
42
 
42
 
43
-    @PreAuthorize("@ss.hasPermi('system:dict:list')")
43
+//    @PreAuthorize("@ss.hasPermi('system:dict:list')")
44
     @GetMapping("/list")
44
     @GetMapping("/list")
45
     public TableDataInfo list(SysDictData dictData)
45
     public TableDataInfo list(SysDictData dictData)
46
     {
46
     {
50
     }
50
     }
51
 
51
 
52
     @Log(title = "字典数据", businessType = BusinessType.EXPORT)
52
     @Log(title = "字典数据", businessType = BusinessType.EXPORT)
53
-    @PreAuthorize("@ss.hasPermi('system:dict:export')")
53
+//    @PreAuthorize("@ss.hasPermi('system:dict:export')")
54
     @PostMapping("/export")
54
     @PostMapping("/export")
55
     public void export(HttpServletResponse response, SysDictData dictData)
55
     public void export(HttpServletResponse response, SysDictData dictData)
56
     {
56
     {
62
     /**
62
     /**
63
      * 查询字典数据详细
63
      * 查询字典数据详细
64
      */
64
      */
65
-    @PreAuthorize("@ss.hasPermi('system:dict:query')")
65
+//    @PreAuthorize("@ss.hasPermi('system:dict:query')")
66
     @GetMapping(value = "/{dictCode}")
66
     @GetMapping(value = "/{dictCode}")
67
     public AjaxResult getInfo(@PathVariable Long dictCode)
67
     public AjaxResult getInfo(@PathVariable Long dictCode)
68
     {
68
     {
86
     /**
86
     /**
87
      * 新增字典类型
87
      * 新增字典类型
88
      */
88
      */
89
-    @PreAuthorize("@ss.hasPermi('system:dict:add')")
89
+//    @PreAuthorize("@ss.hasPermi('system:dict:add')")
90
     @Log(title = "字典数据", businessType = BusinessType.INSERT)
90
     @Log(title = "字典数据", businessType = BusinessType.INSERT)
91
     @PostMapping
91
     @PostMapping
92
     public AjaxResult add(@Validated @RequestBody SysDictData dict)
92
     public AjaxResult add(@Validated @RequestBody SysDictData dict)
98
     /**
98
     /**
99
      * 修改保存字典类型
99
      * 修改保存字典类型
100
      */
100
      */
101
-    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
101
+//    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
102
     @Log(title = "字典数据", businessType = BusinessType.UPDATE)
102
     @Log(title = "字典数据", businessType = BusinessType.UPDATE)
103
     @PutMapping
103
     @PutMapping
104
     public AjaxResult edit(@Validated @RequestBody SysDictData dict)
104
     public AjaxResult edit(@Validated @RequestBody SysDictData dict)
110
     /**
110
     /**
111
      * 删除字典类型
111
      * 删除字典类型
112
      */
112
      */
113
-    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
113
+//    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
114
     @Log(title = "字典类型", businessType = BusinessType.DELETE)
114
     @Log(title = "字典类型", businessType = BusinessType.DELETE)
115
     @DeleteMapping("/{dictCodes}")
115
     @DeleteMapping("/{dictCodes}")
116
     public AjaxResult remove(@PathVariable Long[] dictCodes)
116
     public AjaxResult remove(@PathVariable Long[] dictCodes)

+ 8
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java Wyświetl plik

3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
 import org.springframework.beans.factory.annotation.Autowired;
5
 import org.springframework.beans.factory.annotation.Autowired;
6
-import org.springframework.security.access.prepost.PreAuthorize;
6
+//import org.springframework.security.access.prepost.PreAuthorize;
7
 import org.springframework.validation.annotation.Validated;
7
 import org.springframework.validation.annotation.Validated;
8
 import org.springframework.web.bind.annotation.DeleteMapping;
8
 import org.springframework.web.bind.annotation.DeleteMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
9
 import org.springframework.web.bind.annotation.GetMapping;
34
     @Autowired
34
     @Autowired
35
     private ISysDictTypeService dictTypeService;
35
     private ISysDictTypeService dictTypeService;
36
 
36
 
37
-    @PreAuthorize("@ss.hasPermi('system:dict:list')")
37
+//    @PreAuthorize("@ss.hasPermi('system:dict:list')")
38
     @GetMapping("/list")
38
     @GetMapping("/list")
39
     public TableDataInfo list(SysDictType dictType)
39
     public TableDataInfo list(SysDictType dictType)
40
     {
40
     {
44
     }
44
     }
45
 
45
 
46
     @Log(title = "字典类型", businessType = BusinessType.EXPORT)
46
     @Log(title = "字典类型", businessType = BusinessType.EXPORT)
47
-    @PreAuthorize("@ss.hasPermi('system:dict:export')")
47
+//    @PreAuthorize("@ss.hasPermi('system:dict:export')")
48
     @PostMapping("/export")
48
     @PostMapping("/export")
49
     public void export(HttpServletResponse response, SysDictType dictType)
49
     public void export(HttpServletResponse response, SysDictType dictType)
50
     {
50
     {
56
     /**
56
     /**
57
      * 查询字典类型详细
57
      * 查询字典类型详细
58
      */
58
      */
59
-    @PreAuthorize("@ss.hasPermi('system:dict:query')")
59
+//    @PreAuthorize("@ss.hasPermi('system:dict:query')")
60
     @GetMapping(value = "/{dictId}")
60
     @GetMapping(value = "/{dictId}")
61
     public AjaxResult getInfo(@PathVariable Long dictId)
61
     public AjaxResult getInfo(@PathVariable Long dictId)
62
     {
62
     {
66
     /**
66
     /**
67
      * 新增字典类型
67
      * 新增字典类型
68
      */
68
      */
69
-    @PreAuthorize("@ss.hasPermi('system:dict:add')")
69
+//    @PreAuthorize("@ss.hasPermi('system:dict:add')")
70
     @Log(title = "字典类型", businessType = BusinessType.INSERT)
70
     @Log(title = "字典类型", businessType = BusinessType.INSERT)
71
     @PostMapping
71
     @PostMapping
72
     public AjaxResult add(@Validated @RequestBody SysDictType dict)
72
     public AjaxResult add(@Validated @RequestBody SysDictType dict)
82
     /**
82
     /**
83
      * 修改字典类型
83
      * 修改字典类型
84
      */
84
      */
85
-    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
85
+//    @PreAuthorize("@ss.hasPermi('system:dict:edit')")
86
     @Log(title = "字典类型", businessType = BusinessType.UPDATE)
86
     @Log(title = "字典类型", businessType = BusinessType.UPDATE)
87
     @PutMapping
87
     @PutMapping
88
     public AjaxResult edit(@Validated @RequestBody SysDictType dict)
88
     public AjaxResult edit(@Validated @RequestBody SysDictType dict)
98
     /**
98
     /**
99
      * 删除字典类型
99
      * 删除字典类型
100
      */
100
      */
101
-    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
101
+//    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
102
     @Log(title = "字典类型", businessType = BusinessType.DELETE)
102
     @Log(title = "字典类型", businessType = BusinessType.DELETE)
103
     @DeleteMapping("/{dictIds}")
103
     @DeleteMapping("/{dictIds}")
104
     public AjaxResult remove(@PathVariable Long[] dictIds)
104
     public AjaxResult remove(@PathVariable Long[] dictIds)
110
     /**
110
     /**
111
      * 刷新字典缓存
111
      * 刷新字典缓存
112
      */
112
      */
113
-    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
113
+//    @PreAuthorize("@ss.hasPermi('system:dict:remove')")
114
     @Log(title = "字典类型", businessType = BusinessType.CLEAN)
114
     @Log(title = "字典类型", businessType = BusinessType.CLEAN)
115
     @DeleteMapping("/refreshCache")
115
     @DeleteMapping("/refreshCache")
116
     public AjaxResult refreshCache()
116
     public AjaxResult refreshCache()

+ 6
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysExpressionController.java Wyświetl plik

37
     /**
37
     /**
38
      * 查询流程达式列表
38
      * 查询流程达式列表
39
      */
39
      */
40
-    @PreAuthorize("@ss.hasPermi('system:expression:list')")
40
+//    @PreAuthorize("@ss.hasPermi('system:expression:list')")
41
     @GetMapping("/list")
41
     @GetMapping("/list")
42
     public TableDataInfo list(SysExpression sysExpression)
42
     public TableDataInfo list(SysExpression sysExpression)
43
     {
43
     {
49
     /**
49
     /**
50
      * 导出流程达式列表
50
      * 导出流程达式列表
51
      */
51
      */
52
-    @PreAuthorize("@ss.hasPermi('system:expression:export')")
52
+//    @PreAuthorize("@ss.hasPermi('system:expression:export')")
53
     @Log(title = "流程达式", businessType = BusinessType.EXPORT)
53
     @Log(title = "流程达式", businessType = BusinessType.EXPORT)
54
     @PostMapping("/export")
54
     @PostMapping("/export")
55
     public void export(HttpServletResponse response, SysExpression sysExpression)
55
     public void export(HttpServletResponse response, SysExpression sysExpression)
62
     /**
62
     /**
63
      * 获取流程达式详细信息
63
      * 获取流程达式详细信息
64
      */
64
      */
65
-    @PreAuthorize("@ss.hasPermi('system:expression:query')")
65
+//    @PreAuthorize("@ss.hasPermi('system:expression:query')")
66
     @GetMapping(value = "/{id}")
66
     @GetMapping(value = "/{id}")
67
     public AjaxResult getInfo(@PathVariable("id") Long id)
67
     public AjaxResult getInfo(@PathVariable("id") Long id)
68
     {
68
     {
72
     /**
72
     /**
73
      * 新增流程达式
73
      * 新增流程达式
74
      */
74
      */
75
-    @PreAuthorize("@ss.hasPermi('system:expression:add')")
75
+//    @PreAuthorize("@ss.hasPermi('system:expression:add')")
76
     @Log(title = "流程达式", businessType = BusinessType.INSERT)
76
     @Log(title = "流程达式", businessType = BusinessType.INSERT)
77
     @PostMapping
77
     @PostMapping
78
     public AjaxResult add(@RequestBody SysExpression sysExpression)
78
     public AjaxResult add(@RequestBody SysExpression sysExpression)
83
     /**
83
     /**
84
      * 修改流程达式
84
      * 修改流程达式
85
      */
85
      */
86
-    @PreAuthorize("@ss.hasPermi('system:expression:edit')")
86
+//    @PreAuthorize("@ss.hasPermi('system:expression:edit')")
87
     @Log(title = "流程达式", businessType = BusinessType.UPDATE)
87
     @Log(title = "流程达式", businessType = BusinessType.UPDATE)
88
     @PutMapping
88
     @PutMapping
89
     public AjaxResult edit(@RequestBody SysExpression sysExpression)
89
     public AjaxResult edit(@RequestBody SysExpression sysExpression)
94
     /**
94
     /**
95
      * 删除流程达式
95
      * 删除流程达式
96
      */
96
      */
97
-    @PreAuthorize("@ss.hasPermi('system:expression:remove')")
97
+//    @PreAuthorize("@ss.hasPermi('system:expression:remove')")
98
     @Log(title = "流程达式", businessType = BusinessType.DELETE)
98
     @Log(title = "流程达式", businessType = BusinessType.DELETE)
99
 	@DeleteMapping("/{ids}")
99
 	@DeleteMapping("/{ids}")
100
     public AjaxResult remove(@PathVariable Long[] ids)
100
     public AjaxResult remove(@PathVariable Long[] ids)

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysListenerController.java Wyświetl plik

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import javax.servlet.http.HttpServletResponse;
4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+//import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.beans.factory.annotation.Autowired;
6
 import org.springframework.beans.factory.annotation.Autowired;
7
 import org.springframework.web.bind.annotation.GetMapping;
7
 import org.springframework.web.bind.annotation.GetMapping;
8
 import org.springframework.web.bind.annotation.PostMapping;
8
 import org.springframework.web.bind.annotation.PostMapping;
37
     /**
37
     /**
38
      * 查询流程监听列表
38
      * 查询流程监听列表
39
      */
39
      */
40
-    @PreAuthorize("@ss.hasPermi('system:listener:list')")
40
+//    @PreAuthorize("@ss.hasPermi('system:listener:list')")
41
     @GetMapping("/list")
41
     @GetMapping("/list")
42
     public TableDataInfo list(SysListener sysListener)
42
     public TableDataInfo list(SysListener sysListener)
43
     {
43
     {
49
     /**
49
     /**
50
      * 导出流程监听列表
50
      * 导出流程监听列表
51
      */
51
      */
52
-    @PreAuthorize("@ss.hasPermi('system:listener:export')")
52
+//    @PreAuthorize("@ss.hasPermi('system:listener:export')")
53
     @Log(title = "流程监听", businessType = BusinessType.EXPORT)
53
     @Log(title = "流程监听", businessType = BusinessType.EXPORT)
54
     @PostMapping("/export")
54
     @PostMapping("/export")
55
     public void export(HttpServletResponse response, SysListener sysListener)
55
     public void export(HttpServletResponse response, SysListener sysListener)
62
     /**
62
     /**
63
      * 获取流程监听详细信息
63
      * 获取流程监听详细信息
64
      */
64
      */
65
-    @PreAuthorize("@ss.hasPermi('system:listener:query')")
65
+//    @PreAuthorize("@ss.hasPermi('system:listener:query')")
66
     @GetMapping(value = "/{id}")
66
     @GetMapping(value = "/{id}")
67
     public AjaxResult getInfo(@PathVariable("id") Long id)
67
     public AjaxResult getInfo(@PathVariable("id") Long id)
68
     {
68
     {
72
     /**
72
     /**
73
      * 新增流程监听
73
      * 新增流程监听
74
      */
74
      */
75
-    @PreAuthorize("@ss.hasPermi('system:listener:add')")
75
+//    @PreAuthorize("@ss.hasPermi('system:listener:add')")
76
     @Log(title = "流程监听", businessType = BusinessType.INSERT)
76
     @Log(title = "流程监听", businessType = BusinessType.INSERT)
77
     @PostMapping
77
     @PostMapping
78
     public AjaxResult add(@RequestBody SysListener sysListener)
78
     public AjaxResult add(@RequestBody SysListener sysListener)
83
     /**
83
     /**
84
      * 修改流程监听
84
      * 修改流程监听
85
      */
85
      */
86
-    @PreAuthorize("@ss.hasPermi('system:listener:edit')")
86
+//    @PreAuthorize("@ss.hasPermi('system:listener:edit')")
87
     @Log(title = "流程监听", businessType = BusinessType.UPDATE)
87
     @Log(title = "流程监听", businessType = BusinessType.UPDATE)
88
     @PutMapping
88
     @PutMapping
89
     public AjaxResult edit(@RequestBody SysListener sysListener)
89
     public AjaxResult edit(@RequestBody SysListener sysListener)
94
     /**
94
     /**
95
      * 删除流程监听
95
      * 删除流程监听
96
      */
96
      */
97
-    @PreAuthorize("@ss.hasPermi('system:listener:remove')")
97
+//    @PreAuthorize("@ss.hasPermi('system:listener:remove')")
98
     @Log(title = "流程监听", businessType = BusinessType.DELETE)
98
     @Log(title = "流程监听", businessType = BusinessType.DELETE)
99
 	@DeleteMapping("/{ids}")
99
 	@DeleteMapping("/{ids}")
100
     public AjaxResult remove(@PathVariable Long[] ids)
100
     public AjaxResult remove(@PathVariable Long[] ids)

+ 6
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java Wyświetl plik

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import org.springframework.beans.factory.annotation.Autowired;
4
 import org.springframework.beans.factory.annotation.Autowired;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+//import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.validation.annotation.Validated;
6
 import org.springframework.validation.annotation.Validated;
7
 import org.springframework.web.bind.annotation.DeleteMapping;
7
 import org.springframework.web.bind.annotation.DeleteMapping;
8
 import org.springframework.web.bind.annotation.GetMapping;
8
 import org.springframework.web.bind.annotation.GetMapping;
36
     /**
36
     /**
37
      * 获取菜单列表
37
      * 获取菜单列表
38
      */
38
      */
39
-    @PreAuthorize("@ss.hasPermi('system:menu:list')")
39
+//    @PreAuthorize("@ss.hasPermi('system:menu:list')")
40
     @GetMapping("/list")
40
     @GetMapping("/list")
41
     public AjaxResult list(SysMenu menu)
41
     public AjaxResult list(SysMenu menu)
42
     {
42
     {
47
     /**
47
     /**
48
      * 根据菜单编号获取详细信息
48
      * 根据菜单编号获取详细信息
49
      */
49
      */
50
-    @PreAuthorize("@ss.hasPermi('system:menu:query')")
50
+//    @PreAuthorize("@ss.hasPermi('system:menu:query')")
51
     @GetMapping(value = "/{menuId}")
51
     @GetMapping(value = "/{menuId}")
52
     public AjaxResult getInfo(@PathVariable Long menuId)
52
     public AjaxResult getInfo(@PathVariable Long menuId)
53
     {
53
     {
80
     /**
80
     /**
81
      * 新增菜单
81
      * 新增菜单
82
      */
82
      */
83
-    @PreAuthorize("@ss.hasPermi('system:menu:add')")
83
+//    @PreAuthorize("@ss.hasPermi('system:menu:add')")
84
     @Log(title = "菜单管理", businessType = BusinessType.INSERT)
84
     @Log(title = "菜单管理", businessType = BusinessType.INSERT)
85
     @PostMapping
85
     @PostMapping
86
     public AjaxResult add(@Validated @RequestBody SysMenu menu)
86
     public AjaxResult add(@Validated @RequestBody SysMenu menu)
100
     /**
100
     /**
101
      * 修改菜单
101
      * 修改菜单
102
      */
102
      */
103
-    @PreAuthorize("@ss.hasPermi('system:menu:edit')")
103
+//    @PreAuthorize("@ss.hasPermi('system:menu:edit')")
104
     @Log(title = "菜单管理", businessType = BusinessType.UPDATE)
104
     @Log(title = "菜单管理", businessType = BusinessType.UPDATE)
105
     @PutMapping
105
     @PutMapping
106
     public AjaxResult edit(@Validated @RequestBody SysMenu menu)
106
     public AjaxResult edit(@Validated @RequestBody SysMenu menu)
124
     /**
124
     /**
125
      * 删除菜单
125
      * 删除菜单
126
      */
126
      */
127
-    @PreAuthorize("@ss.hasPermi('system:menu:remove')")
127
+//    @PreAuthorize("@ss.hasPermi('system:menu:remove')")
128
     @Log(title = "菜单管理", businessType = BusinessType.DELETE)
128
     @Log(title = "菜单管理", businessType = BusinessType.DELETE)
129
     @DeleteMapping("/{menuId}")
129
     @DeleteMapping("/{menuId}")
130
     public AjaxResult remove(@PathVariable("menuId") Long menuId)
130
     public AjaxResult remove(@PathVariable("menuId") Long menuId)

+ 5
- 5
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java Wyświetl plik

2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
 import org.springframework.beans.factory.annotation.Autowired;
4
 import org.springframework.beans.factory.annotation.Autowired;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+//import org.springframework.security.access.prepost.PreAuthorize;
6
 import org.springframework.validation.annotation.Validated;
6
 import org.springframework.validation.annotation.Validated;
7
 import org.springframework.web.bind.annotation.DeleteMapping;
7
 import org.springframework.web.bind.annotation.DeleteMapping;
8
 import org.springframework.web.bind.annotation.GetMapping;
8
 import org.springframework.web.bind.annotation.GetMapping;
47
     /**
47
     /**
48
      * 根据通知公告编号获取详细信息
48
      * 根据通知公告编号获取详细信息
49
      */
49
      */
50
-    @PreAuthorize("@ss.hasPermi('system:notice:query')")
50
+//    @PreAuthorize("@ss.hasPermi('system:notice:query')")
51
     @GetMapping(value = "/{noticeId}")
51
     @GetMapping(value = "/{noticeId}")
52
     public AjaxResult getInfo(@PathVariable Long noticeId)
52
     public AjaxResult getInfo(@PathVariable Long noticeId)
53
     {
53
     {
57
     /**
57
     /**
58
      * 新增通知公告
58
      * 新增通知公告
59
      */
59
      */
60
-    @PreAuthorize("@ss.hasPermi('system:notice:add')")
60
+//    @PreAuthorize("@ss.hasPermi('system:notice:add')")
61
     @Log(title = "通知公告", businessType = BusinessType.INSERT)
61
     @Log(title = "通知公告", businessType = BusinessType.INSERT)
62
     @PostMapping
62
     @PostMapping
63
     public AjaxResult add(@Validated @RequestBody SysNotice notice)
63
     public AjaxResult add(@Validated @RequestBody SysNotice notice)
69
     /**
69
     /**
70
      * 修改通知公告
70
      * 修改通知公告
71
      */
71
      */
72
-    @PreAuthorize("@ss.hasPermi('system:notice:edit')")
72
+//    @PreAuthorize("@ss.hasPermi('system:notice:edit')")
73
     @Log(title = "通知公告", businessType = BusinessType.UPDATE)
73
     @Log(title = "通知公告", businessType = BusinessType.UPDATE)
74
     @PutMapping
74
     @PutMapping
75
     public AjaxResult edit(@Validated @RequestBody SysNotice notice)
75
     public AjaxResult edit(@Validated @RequestBody SysNotice notice)
81
     /**
81
     /**
82
      * 删除通知公告
82
      * 删除通知公告
83
      */
83
      */
84
-    @PreAuthorize("@ss.hasPermi('system:notice:remove')")
84
+//    @PreAuthorize("@ss.hasPermi('system:notice:remove')")
85
     @Log(title = "通知公告", businessType = BusinessType.DELETE)
85
     @Log(title = "通知公告", businessType = BusinessType.DELETE)
86
     @DeleteMapping("/{noticeIds}")
86
     @DeleteMapping("/{noticeIds}")
87
     public AjaxResult remove(@PathVariable Long[] noticeIds)
87
     public AjaxResult remove(@PathVariable Long[] noticeIds)

+ 0
- 5
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java Wyświetl plik

1
 package com.ruoyi.web.controller.system;
1
 package com.ruoyi.web.controller.system;
2
 
2
 
3
 import java.util.ArrayList;
3
 import java.util.ArrayList;
4
-import java.util.Arrays;
5
-import java.util.Iterator;
6
 import java.util.List;
4
 import java.util.List;
7
 import javax.servlet.http.HttpServletResponse;
5
 import javax.servlet.http.HttpServletResponse;
8
 
6
 
9
-import com.alibaba.fastjson2.JSONObject;
10
-import com.ruoyi.common.core.domain.entity.SysDept;
11
 import com.ruoyi.common.core.domain.entity.SysUser;
7
 import com.ruoyi.common.core.domain.entity.SysUser;
12
 import com.ruoyi.oa.domain.CmcManageDept;
8
 import com.ruoyi.oa.domain.CmcManageDept;
13
 import com.ruoyi.oa.service.ICmcManageDeptService;
9
 import com.ruoyi.oa.service.ICmcManageDeptService;
14
-import com.ruoyi.system.service.ISysDeptService;
15
 import com.ruoyi.system.service.ISysUserService;
10
 import com.ruoyi.system.service.ISysUserService;
16
 import org.springframework.beans.factory.annotation.Autowired;
11
 import org.springframework.beans.factory.annotation.Autowired;
17
 import org.springframework.security.access.prepost.PreAuthorize;
12
 import org.springframework.security.access.prepost.PreAuthorize;

+ 16
- 16
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java Wyświetl plik

4
 import java.util.List;
4
 import java.util.List;
5
 import javax.servlet.http.HttpServletResponse;
5
 import javax.servlet.http.HttpServletResponse;
6
 import org.springframework.beans.factory.annotation.Autowired;
6
 import org.springframework.beans.factory.annotation.Autowired;
7
-import org.springframework.security.access.prepost.PreAuthorize;
7
+//import org.springframework.security.access.prepost.PreAuthorize;
8
 import org.springframework.validation.annotation.Validated;
8
 import org.springframework.validation.annotation.Validated;
9
 import org.springframework.web.bind.annotation.DeleteMapping;
9
 import org.springframework.web.bind.annotation.DeleteMapping;
10
 import org.springframework.web.bind.annotation.GetMapping;
10
 import org.springframework.web.bind.annotation.GetMapping;
56
     @Autowired
56
     @Autowired
57
     private ISysDeptService deptService;
57
     private ISysDeptService deptService;
58
 
58
 
59
-    @PreAuthorize("@ss.hasPermi('system:role:list')")
59
+//    @PreAuthorize("@ss.hasPermi('system:role:list')")
60
     @GetMapping("/list")
60
     @GetMapping("/list")
61
     public TableDataInfo list(SysRole role)
61
     public TableDataInfo list(SysRole role)
62
     {
62
     {
66
     }
66
     }
67
 
67
 
68
     @Log(title = "角色管理", businessType = BusinessType.EXPORT)
68
     @Log(title = "角色管理", businessType = BusinessType.EXPORT)
69
-    @PreAuthorize("@ss.hasPermi('system:role:export')")
69
+//    @PreAuthorize("@ss.hasPermi('system:role:export')")
70
     @PostMapping("/export")
70
     @PostMapping("/export")
71
     public void export(HttpServletResponse response, SysRole role)
71
     public void export(HttpServletResponse response, SysRole role)
72
     {
72
     {
78
     /**
78
     /**
79
      * 根据角色编号获取详细信息
79
      * 根据角色编号获取详细信息
80
      */
80
      */
81
-    @PreAuthorize("@ss.hasPermi('system:role:query')")
81
+//    @PreAuthorize("@ss.hasPermi('system:role:query')")
82
     @GetMapping(value = "/{roleId}")
82
     @GetMapping(value = "/{roleId}")
83
     public AjaxResult getInfo(@PathVariable Long roleId)
83
     public AjaxResult getInfo(@PathVariable Long roleId)
84
     {
84
     {
102
     /**
102
     /**
103
      * 新增角色
103
      * 新增角色
104
      */
104
      */
105
-    @PreAuthorize("@ss.hasPermi('system:role:add')")
105
+//    @PreAuthorize("@ss.hasPermi('system:role:add')")
106
     @Log(title = "角色管理", businessType = BusinessType.INSERT)
106
     @Log(title = "角色管理", businessType = BusinessType.INSERT)
107
     @PostMapping
107
     @PostMapping
108
     public AjaxResult add(@Validated @RequestBody SysRole role)
108
     public AjaxResult add(@Validated @RequestBody SysRole role)
122
     /**
122
     /**
123
      * 修改保存角色
123
      * 修改保存角色
124
      */
124
      */
125
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
125
+//    @PreAuthorize("@ss.hasPermi('system:role:edit')")
126
     @Log(title = "角色管理", businessType = BusinessType.UPDATE)
126
     @Log(title = "角色管理", businessType = BusinessType.UPDATE)
127
     @PutMapping
127
     @PutMapping
128
     public AjaxResult edit(@Validated @RequestBody SysRole role)
128
     public AjaxResult edit(@Validated @RequestBody SysRole role)
157
     /**
157
     /**
158
      * 修改保存数据权限
158
      * 修改保存数据权限
159
      */
159
      */
160
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
160
+//    @PreAuthorize("@ss.hasPermi('system:role:edit')")
161
     @Log(title = "角色管理", businessType = BusinessType.UPDATE)
161
     @Log(title = "角色管理", businessType = BusinessType.UPDATE)
162
     @PutMapping("/dataScope")
162
     @PutMapping("/dataScope")
163
     public AjaxResult dataScope(@RequestBody SysRole role)
163
     public AjaxResult dataScope(@RequestBody SysRole role)
170
     /**
170
     /**
171
      * 状态修改
171
      * 状态修改
172
      */
172
      */
173
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
173
+//    @PreAuthorize("@ss.hasPermi('system:role:edit')")
174
     @Log(title = "角色管理", businessType = BusinessType.UPDATE)
174
     @Log(title = "角色管理", businessType = BusinessType.UPDATE)
175
     @PutMapping("/changeStatus")
175
     @PutMapping("/changeStatus")
176
     public AjaxResult changeStatus(@RequestBody SysRole role)
176
     public AjaxResult changeStatus(@RequestBody SysRole role)
184
     /**
184
     /**
185
      * 删除角色
185
      * 删除角色
186
      */
186
      */
187
-    @PreAuthorize("@ss.hasPermi('system:role:remove')")
187
+//    @PreAuthorize("@ss.hasPermi('system:role:remove')")
188
     @Log(title = "角色管理", businessType = BusinessType.DELETE)
188
     @Log(title = "角色管理", businessType = BusinessType.DELETE)
189
     @DeleteMapping("/{roleIds}")
189
     @DeleteMapping("/{roleIds}")
190
     public AjaxResult remove(@PathVariable Long[] roleIds)
190
     public AjaxResult remove(@PathVariable Long[] roleIds)
195
     /**
195
     /**
196
      * 获取角色选择框列表
196
      * 获取角色选择框列表
197
      */
197
      */
198
-    @PreAuthorize("@ss.hasPermi('system:role:query')")
198
+//    @PreAuthorize("@ss.hasPermi('system:role:query')")
199
     @GetMapping("/optionselect")
199
     @GetMapping("/optionselect")
200
     public AjaxResult optionselect()
200
     public AjaxResult optionselect()
201
     {
201
     {
205
     /**
205
     /**
206
      * 查询已分配用户角色列表
206
      * 查询已分配用户角色列表
207
      */
207
      */
208
-    @PreAuthorize("@ss.hasPermi('system:role:list')")
208
+//    @PreAuthorize("@ss.hasPermi('system:role:list')")
209
     @GetMapping("/authUser/allocatedList")
209
     @GetMapping("/authUser/allocatedList")
210
     public TableDataInfo allocatedList(SysUser user)
210
     public TableDataInfo allocatedList(SysUser user)
211
     {
211
     {
217
     /**
217
     /**
218
      * 查询未分配用户角色列表
218
      * 查询未分配用户角色列表
219
      */
219
      */
220
-    @PreAuthorize("@ss.hasPermi('system:role:list')")
220
+//    @PreAuthorize("@ss.hasPermi('system:role:list')")
221
     @GetMapping("/authUser/unallocatedList")
221
     @GetMapping("/authUser/unallocatedList")
222
     public TableDataInfo unallocatedList(SysUser user)
222
     public TableDataInfo unallocatedList(SysUser user)
223
     {
223
     {
229
     /**
229
     /**
230
      * 取消授权用户
230
      * 取消授权用户
231
      */
231
      */
232
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
232
+//    @PreAuthorize("@ss.hasPermi('system:role:edit')")
233
     @Log(title = "角色管理", businessType = BusinessType.GRANT)
233
     @Log(title = "角色管理", businessType = BusinessType.GRANT)
234
     @PutMapping("/authUser/cancel")
234
     @PutMapping("/authUser/cancel")
235
     public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
235
     public AjaxResult cancelAuthUser(@RequestBody SysUserRole userRole)
240
     /**
240
     /**
241
      * 批量取消授权用户
241
      * 批量取消授权用户
242
      */
242
      */
243
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
243
+//    @PreAuthorize("@ss.hasPermi('system:role:edit')")
244
     @Log(title = "角色管理", businessType = BusinessType.GRANT)
244
     @Log(title = "角色管理", businessType = BusinessType.GRANT)
245
     @PutMapping("/authUser/cancelAll")
245
     @PutMapping("/authUser/cancelAll")
246
     public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
246
     public AjaxResult cancelAuthUserAll(Long roleId, Long[] userIds)
251
     /**
251
     /**
252
      * 批量选择用户授权
252
      * 批量选择用户授权
253
      */
253
      */
254
-    @PreAuthorize("@ss.hasPermi('system:role:edit')")
254
+//    @PreAuthorize("@ss.hasPermi('system:role:edit')")
255
     @Log(title = "角色管理", businessType = BusinessType.GRANT)
255
     @Log(title = "角色管理", businessType = BusinessType.GRANT)
256
     @PutMapping("/authUser/selectAll")
256
     @PutMapping("/authUser/selectAll")
257
     public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
257
     public AjaxResult selectAuthUserAll(Long roleId, Long[] userIds)
263
     /**
263
     /**
264
      * 获取对应角色部门树列表
264
      * 获取对应角色部门树列表
265
      */
265
      */
266
-    @PreAuthorize("@ss.hasPermi('system:role:query')")
266
+//    @PreAuthorize("@ss.hasPermi('system:role:query')")
267
     @GetMapping(value = "/deptTree/{roleId}")
267
     @GetMapping(value = "/deptTree/{roleId}")
268
     public AjaxResult deptTree(@PathVariable("roleId") Long roleId)
268
     public AjaxResult deptTree(@PathVariable("roleId") Long roleId)
269
     {
269
     {

+ 15
- 16
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysUserController.java Wyświetl plik

10
 import com.alibaba.fastjson2.JSONObject;
10
 import com.alibaba.fastjson2.JSONObject;
11
 import com.ruoyi.common.utils.DateUtils;
11
 import com.ruoyi.common.utils.DateUtils;
12
 import com.ruoyi.common.utils.IDCard;
12
 import com.ruoyi.common.utils.IDCard;
13
-import com.ruoyi.framework.web.domain.server.Sys;
14
 import com.ruoyi.oa.domain.CmcUserHistory;
13
 import com.ruoyi.oa.domain.CmcUserHistory;
15
 import com.ruoyi.oa.service.ICmcUserHistoryService;
14
 import com.ruoyi.oa.service.ICmcUserHistoryService;
16
 import org.apache.commons.lang3.ArrayUtils;
15
 import org.apache.commons.lang3.ArrayUtils;
17
 import org.apache.commons.lang3.time.DateFormatUtils;
16
 import org.apache.commons.lang3.time.DateFormatUtils;
18
 import org.springframework.beans.factory.annotation.Autowired;
17
 import org.springframework.beans.factory.annotation.Autowired;
19
-import org.springframework.security.access.prepost.PreAuthorize;
18
+//import org.springframework.security.access.prepost.PreAuthorize;
20
 import org.springframework.validation.annotation.Validated;
19
 import org.springframework.validation.annotation.Validated;
21
 import org.springframework.web.bind.annotation.DeleteMapping;
20
 import org.springframework.web.bind.annotation.DeleteMapping;
22
 import org.springframework.web.bind.annotation.GetMapping;
21
 import org.springframework.web.bind.annotation.GetMapping;
70
     /**
69
     /**
71
      * 获取用户列表
70
      * 获取用户列表
72
      */
71
      */
73
-    @PreAuthorize("@ss.hasPermi('system:user:list')")
72
+//    @PreAuthorize("@ss.hasPermi('system:user:list')")
74
     @GetMapping("/list")
73
     @GetMapping("/list")
75
     public TableDataInfo list(SysUser user)
74
     public TableDataInfo list(SysUser user)
76
     {
75
     {
83
     }
82
     }
84
 
83
 
85
     @Log(title = "用户管理", businessType = BusinessType.EXPORT)
84
     @Log(title = "用户管理", businessType = BusinessType.EXPORT)
86
-    @PreAuthorize("@ss.hasPermi('system:user:export')")
85
+//    @PreAuthorize("@ss.hasPermi('system:user:export')")
87
     @PostMapping("/export")
86
     @PostMapping("/export")
88
     public void export(HttpServletResponse response, SysUser user)
87
     public void export(HttpServletResponse response, SysUser user)
89
     {
88
     {
103
     }
102
     }
104
 
103
 
105
     @Log(title = "用户管理", businessType = BusinessType.IMPORT)
104
     @Log(title = "用户管理", businessType = BusinessType.IMPORT)
106
-    @PreAuthorize("@ss.hasPermi('system:user:import')")
105
+//    @PreAuthorize("@ss.hasPermi('system:user:import')")
107
     @PostMapping("/importData")
106
     @PostMapping("/importData")
108
     public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
107
     public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
109
     {
108
     {
124
     /**
123
     /**
125
      * 根据用户编号获取详细信息
124
      * 根据用户编号获取详细信息
126
      */
125
      */
127
-    @PreAuthorize("@ss.hasPermi('system:user:query')")
126
+//    @PreAuthorize("@ss.hasPermi('system:user:query')")
128
     @GetMapping(value = { "/", "/{userId}" })
127
     @GetMapping(value = { "/", "/{userId}" })
129
     public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId)
128
     public AjaxResult getInfo(@PathVariable(value = "userId", required = false) Long userId)
130
     {
129
     {
273
     /**
272
     /**
274
      * 新增用户
273
      * 新增用户
275
      */
274
      */
276
-    @PreAuthorize("@ss.hasPermi('system:user:add')")
275
+//    @PreAuthorize("@ss.hasPermi('system:user:add')")
277
     @Log(title = "用户管理", businessType = BusinessType.INSERT)
276
     @Log(title = "用户管理", businessType = BusinessType.INSERT)
278
     @PostMapping
277
     @PostMapping
279
     public AjaxResult add(@Validated @RequestBody SysUser user)
278
     public AjaxResult add(@Validated @RequestBody SysUser user)
300
     /**
299
     /**
301
      * 修改用户密码
300
      * 修改用户密码
302
      */
301
      */
303
-    @PreAuthorize("@ss.hasPermi('system:user:edit')")
302
+//    @PreAuthorize("@ss.hasPermi('system:user:edit')")
304
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
303
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
305
     @PutMapping("/resetPassword")
304
     @PutMapping("/resetPassword")
306
     public AjaxResult editPassword()
305
     public AjaxResult editPassword()
317
     /**
316
     /**
318
      * 修改用户
317
      * 修改用户
319
      */
318
      */
320
-    @PreAuthorize("@ss.hasPermi('system:user:edit')")
319
+//    @PreAuthorize("@ss.hasPermi('system:user:edit')")
321
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
320
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
322
     @PutMapping
321
     @PutMapping
323
     public AjaxResult edit(@Validated @RequestBody SysUser user)
322
     public AjaxResult edit(@Validated @RequestBody SysUser user)
369
     /**
368
     /**
370
      * 删除用户
369
      * 删除用户
371
      */
370
      */
372
-    @PreAuthorize("@ss.hasPermi('system:user:remove')")
371
+//    @PreAuthorize("@ss.hasPermi('system:user:remove')")
373
     @Log(title = "用户管理", businessType = BusinessType.DELETE)
372
     @Log(title = "用户管理", businessType = BusinessType.DELETE)
374
     @DeleteMapping("/{userIds}")
373
     @DeleteMapping("/{userIds}")
375
     public AjaxResult remove(@PathVariable Long[] userIds)
374
     public AjaxResult remove(@PathVariable Long[] userIds)
384
     /**
383
     /**
385
      * 重置密码
384
      * 重置密码
386
      */
385
      */
387
-    @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
386
+//    @PreAuthorize("@ss.hasPermi('system:user:resetPwd')")
388
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
387
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
389
     @PutMapping("/resetPwd")
388
     @PutMapping("/resetPwd")
390
     public AjaxResult resetPwd(@RequestBody SysUser user)
389
     public AjaxResult resetPwd(@RequestBody SysUser user)
399
     /**
398
     /**
400
      * 状态修改
399
      * 状态修改
401
      */
400
      */
402
-    @PreAuthorize("@ss.hasPermi('system:user:edit')")
401
+//    @PreAuthorize("@ss.hasPermi('system:user:edit')")
403
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
402
     @Log(title = "用户管理", businessType = BusinessType.UPDATE)
404
     @PutMapping("/changeStatus")
403
     @PutMapping("/changeStatus")
405
     public AjaxResult changeStatus(@RequestBody SysUser user)
404
     public AjaxResult changeStatus(@RequestBody SysUser user)
413
     /**
412
     /**
414
      * 根据用户编号获取授权角色
413
      * 根据用户编号获取授权角色
415
      */
414
      */
416
-    @PreAuthorize("@ss.hasPermi('system:user:query')")
415
+//    @PreAuthorize("@ss.hasPermi('system:user:query')")
417
     @GetMapping("/authRole/{userId}")
416
     @GetMapping("/authRole/{userId}")
418
     public AjaxResult authRole(@PathVariable("userId") Long userId)
417
     public AjaxResult authRole(@PathVariable("userId") Long userId)
419
     {
418
     {
428
     /**
427
     /**
429
      * 用户授权角色
428
      * 用户授权角色
430
      */
429
      */
431
-    @PreAuthorize("@ss.hasPermi('system:user:edit')")
430
+//    @PreAuthorize("@ss.hasPermi('system:user:edit')")
432
     @Log(title = "用户管理", businessType = BusinessType.GRANT)
431
     @Log(title = "用户管理", businessType = BusinessType.GRANT)
433
     @PutMapping("/authRole")
432
     @PutMapping("/authRole")
434
     public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
433
     public AjaxResult insertAuthRole(Long userId, Long[] roleIds)
441
     /**
440
     /**
442
      * 获取部门树列表
441
      * 获取部门树列表
443
      */
442
      */
444
-    @PreAuthorize("@ss.hasPermi('system:user:list')")
443
+//    @PreAuthorize("@ss.hasPermi('system:user:list')")
445
     @GetMapping("/deptTree")
444
     @GetMapping("/deptTree")
446
     public AjaxResult deptTree(SysDept dept)
445
     public AjaxResult deptTree(SysDept dept)
447
     {
446
     {
451
     /**
450
     /**
452
      * 获取部门树列表
451
      * 获取部门树列表
453
      */
452
      */
454
-    @PreAuthorize("@ss.hasPermi('system:user:list')")
453
+//    @PreAuthorize("@ss.hasPermi('system:user:list')")
455
     @GetMapping("/deptTreeNew")
454
     @GetMapping("/deptTreeNew")
456
     public AjaxResult deptTreeNew(SysDept dept)
455
     public AjaxResult deptTreeNew(SysDept dept)
457
     {
456
     {

Ładowanie…
Anuluj
Zapisz