Kaynağa Gözat

去除后端接口权限

lamphua 10 ay önce
ebeveyn
işleme
2810dd5008

+ 8
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysConfigController.java Dosyayı Görüntüle

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

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDeptController.java Dosyayı Görüntüle

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

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictDataController.java Dosyayı Görüntüle

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

+ 8
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysDictTypeController.java Dosyayı Görüntüle

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

+ 6
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysExpressionController.java Dosyayı Görüntüle

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

+ 7
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysListenerController.java Dosyayı Görüntüle

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

+ 6
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysMenuController.java Dosyayı Görüntüle

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

+ 5
- 5
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysNoticeController.java Dosyayı Görüntüle

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

+ 0
- 5
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysPostController.java Dosyayı Görüntüle

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

+ 16
- 16
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/SysRoleController.java Dosyayı Görüntüle

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

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

Loading…
İptal
Kaydet