浏览代码

后端接口权限设置取消

lamphua 1年前
父节点
当前提交
0726458f60
共有 17 个文件被更改,包括 19 次插入115 次删除
  1. 4
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetCarController.java
  2. 1
    8
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetController.java
  3. 4
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetDeviceController.java
  4. 4
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetSettleController.java
  5. 4
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetStaffController.java
  6. 1
    6
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarController.java
  7. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarExpenseController.java
  8. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractController.java
  9. 0
    1
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceController.java
  10. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPostSalaryController.java
  11. 0
    8
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPriceController.java
  12. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectCommentController.java
  13. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectProgressController.java
  14. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectWorkerController.java
  15. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSafeController.java
  16. 0
    7
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTechnicalController.java
  17. 1
    8
      oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTenderController.java

+ 4
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetCarController.java 查看文件

@@ -2,7 +2,9 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
7
+
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
8 10
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +39,6 @@ public class CmcBudgetCarController extends BaseController
37 39
     /**
38 40
      * 查询cmc车辆预算列表
39 41
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:budgetCar:list')")
41 42
     @GetMapping("/list")
42 43
     public TableDataInfo list(CmcBudgetCar cmcBudgetCar)
43 44
     {
@@ -49,7 +50,6 @@ public class CmcBudgetCarController extends BaseController
49 50
     /**
50 51
      * 导出cmc车辆预算列表
51 52
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:budgetCar:export')")
53 53
     @Log(title = "cmc车辆预算", businessType = BusinessType.EXPORT)
54 54
     @PostMapping("/export")
55 55
     public void export(HttpServletResponse response, CmcBudgetCar cmcBudgetCar)
@@ -62,7 +62,6 @@ public class CmcBudgetCarController extends BaseController
62 62
     /**
63 63
      * 获取cmc车辆预算详细信息
64 64
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:budgetCar:query')")
66 65
     @GetMapping(value = "/{budgetCarId}")
67 66
     public AjaxResult getInfo(@PathVariable("budgetCarId") String budgetCarId)
68 67
     {
@@ -72,18 +71,17 @@ public class CmcBudgetCarController extends BaseController
72 71
     /**
73 72
      * 新增cmc车辆预算
74 73
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:budgetCar:add')")
76 74
     @Log(title = "cmc车辆预算", businessType = BusinessType.INSERT)
77 75
     @PostMapping
78 76
     public AjaxResult add(@RequestBody CmcBudgetCar cmcBudgetCar)
79 77
     {
78
+        cmcBudgetCar.setBudgetCarId(new SnowFlake().generateId());
80 79
         return toAjax(cmcBudgetCarService.insertCmcBudgetCar(cmcBudgetCar));
81 80
     }
82 81
 
83 82
     /**
84 83
      * 修改cmc车辆预算
85 84
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:budgetCar:edit')")
87 85
     @Log(title = "cmc车辆预算", businessType = BusinessType.UPDATE)
88 86
     @PutMapping
89 87
     public AjaxResult edit(@RequestBody CmcBudgetCar cmcBudgetCar)
@@ -94,7 +92,6 @@ public class CmcBudgetCarController extends BaseController
94 92
     /**
95 93
      * 删除cmc车辆预算
96 94
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:budgetCar:remove')")
98 95
     @Log(title = "cmc车辆预算", businessType = BusinessType.DELETE)
99 96
 	@DeleteMapping("/{budgetCarIds}")
100 97
     public AjaxResult remove(@PathVariable String[] budgetCarIds)

+ 1
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetController.java 查看文件

@@ -3,8 +3,7 @@ package com.ruoyi.web.controller.oa;
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5 5
 
6
-import com.ruoyi.common.utils.SnowFlake;
7
-import org.springframework.security.access.prepost.PreAuthorize;
6
+
8 7
 import org.springframework.beans.factory.annotation.Autowired;
9 8
 import org.springframework.web.bind.annotation.*;
10 9
 import com.ruoyi.common.annotation.Log;
@@ -32,7 +31,6 @@ public class CmcBudgetController extends BaseController
32 31
     /**
33 32
      * 查询cmc预算管理列表
34 33
      */
35
-    @PreAuthorize("@ss.hasPermi('oa:budget:list')")
36 34
     @GetMapping("/list")
37 35
     public TableDataInfo list(CmcBudget cmcBudget)
38 36
     {
@@ -44,7 +42,6 @@ public class CmcBudgetController extends BaseController
44 42
     /**
45 43
      * 导出cmc预算管理列表
46 44
      */
47
-    @PreAuthorize("@ss.hasPermi('oa:budget:export')")
48 45
     @Log(title = "cmc预算管理", businessType = BusinessType.EXPORT)
49 46
     @PostMapping("/export")
50 47
     public void export(HttpServletResponse response, CmcBudget cmcBudget)
@@ -57,7 +54,6 @@ public class CmcBudgetController extends BaseController
57 54
     /**
58 55
      * 获取cmc预算管理详细信息
59 56
      */
60
-    @PreAuthorize("@ss.hasPermi('oa:budget:query')")
61 57
     @GetMapping(value = "/{budgetId}")
62 58
     public AjaxResult getInfo(@PathVariable("budgetId") String budgetId)
63 59
     {
@@ -67,7 +63,6 @@ public class CmcBudgetController extends BaseController
67 63
     /**
68 64
      * 新增cmc预算管理
69 65
      */
70
-    @PreAuthorize("@ss.hasPermi('oa:budget:add')")
71 66
     @Log(title = "cmc预算管理", businessType = BusinessType.INSERT)
72 67
     @PostMapping
73 68
     public AjaxResult add(@RequestBody CmcBudget cmcBudget)
@@ -79,7 +74,6 @@ public class CmcBudgetController extends BaseController
79 74
     /**
80 75
      * 修改cmc预算管理
81 76
      */
82
-    @PreAuthorize("@ss.hasPermi('oa:budget:edit')")
83 77
     @Log(title = "cmc预算管理", businessType = BusinessType.UPDATE)
84 78
     @PutMapping
85 79
     public AjaxResult edit(@RequestBody CmcBudget cmcBudget)
@@ -91,7 +85,6 @@ public class CmcBudgetController extends BaseController
91 85
     /**
92 86
      * 删除cmc预算管理
93 87
      */
94
-    @PreAuthorize("@ss.hasPermi('oa:budget:remove')")
95 88
     @Log(title = "cmc预算管理", businessType = BusinessType.DELETE)
96 89
 	@DeleteMapping("/{budgetIds}")
97 90
     public AjaxResult remove(@PathVariable String[] budgetIds)

+ 4
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetDeviceController.java 查看文件

@@ -2,7 +2,9 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
7
+
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
8 10
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +39,6 @@ public class CmcBudgetDeviceController extends BaseController
37 39
     /**
38 40
      * 查询cmc设备预算列表
39 41
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:budgetDevice:list')")
41 42
     @GetMapping("/list")
42 43
     public TableDataInfo list(CmcBudgetDevice cmcBudgetDevice)
43 44
     {
@@ -49,7 +50,6 @@ public class CmcBudgetDeviceController extends BaseController
49 50
     /**
50 51
      * 导出cmc设备预算列表
51 52
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:budgetDevice:export')")
53 53
     @Log(title = "cmc设备预算", businessType = BusinessType.EXPORT)
54 54
     @PostMapping("/export")
55 55
     public void export(HttpServletResponse response, CmcBudgetDevice cmcBudgetDevice)
@@ -62,7 +62,6 @@ public class CmcBudgetDeviceController extends BaseController
62 62
     /**
63 63
      * 获取cmc设备预算详细信息
64 64
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:budgetDevice:query')")
66 65
     @GetMapping(value = "/{budgetDeviceId}")
67 66
     public AjaxResult getInfo(@PathVariable("budgetDeviceId") String budgetDeviceId)
68 67
     {
@@ -72,18 +71,17 @@ public class CmcBudgetDeviceController extends BaseController
72 71
     /**
73 72
      * 新增cmc设备预算
74 73
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:budgetDevice:add')")
76 74
     @Log(title = "cmc设备预算", businessType = BusinessType.INSERT)
77 75
     @PostMapping
78 76
     public AjaxResult add(@RequestBody CmcBudgetDevice cmcBudgetDevice)
79 77
     {
78
+        cmcBudgetDevice.setBudgetDeviceId(new SnowFlake().generateId());
80 79
         return toAjax(cmcBudgetDeviceService.insertCmcBudgetDevice(cmcBudgetDevice));
81 80
     }
82 81
 
83 82
     /**
84 83
      * 修改cmc设备预算
85 84
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:budgetDevice:edit')")
87 85
     @Log(title = "cmc设备预算", businessType = BusinessType.UPDATE)
88 86
     @PutMapping
89 87
     public AjaxResult edit(@RequestBody CmcBudgetDevice cmcBudgetDevice)
@@ -94,7 +92,6 @@ public class CmcBudgetDeviceController extends BaseController
94 92
     /**
95 93
      * 删除cmc设备预算
96 94
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:budgetDevice:remove')")
98 95
     @Log(title = "cmc设备预算", businessType = BusinessType.DELETE)
99 96
 	@DeleteMapping("/{budgetDeviceIds}")
100 97
     public AjaxResult remove(@PathVariable String[] budgetDeviceIds)

+ 4
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetSettleController.java 查看文件

@@ -2,7 +2,9 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
7
+
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
8 10
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +39,6 @@ public class CmcBudgetSettleController extends BaseController
37 39
     /**
38 40
      * 查询cmc预结算列表
39 41
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:budgetSettle:list')")
41 42
     @GetMapping("/list")
42 43
     public TableDataInfo list(CmcBudgetSettle cmcBudgetSettle)
43 44
     {
@@ -49,7 +50,6 @@ public class CmcBudgetSettleController extends BaseController
49 50
     /**
50 51
      * 导出cmc预结算列表
51 52
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:budgetSettle:export')")
53 53
     @Log(title = "cmc预结算", businessType = BusinessType.EXPORT)
54 54
     @PostMapping("/export")
55 55
     public void export(HttpServletResponse response, CmcBudgetSettle cmcBudgetSettle)
@@ -62,7 +62,6 @@ public class CmcBudgetSettleController extends BaseController
62 62
     /**
63 63
      * 获取cmc预结算详细信息
64 64
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:budgetSettle:query')")
66 65
     @GetMapping(value = "/{budgetSettleId}")
67 66
     public AjaxResult getInfo(@PathVariable("budgetSettleId") String budgetSettleId)
68 67
     {
@@ -72,18 +71,17 @@ public class CmcBudgetSettleController extends BaseController
72 71
     /**
73 72
      * 新增cmc预结算
74 73
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:budgetSettle:add')")
76 74
     @Log(title = "cmc预结算", businessType = BusinessType.INSERT)
77 75
     @PostMapping
78 76
     public AjaxResult add(@RequestBody CmcBudgetSettle cmcBudgetSettle)
79 77
     {
78
+        cmcBudgetSettle.setBudgetSettleId(new SnowFlake().generateId());
80 79
         return toAjax(cmcBudgetSettleService.insertCmcBudgetSettle(cmcBudgetSettle));
81 80
     }
82 81
 
83 82
     /**
84 83
      * 修改cmc预结算
85 84
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:budgetSettle:edit')")
87 85
     @Log(title = "cmc预结算", businessType = BusinessType.UPDATE)
88 86
     @PutMapping
89 87
     public AjaxResult edit(@RequestBody CmcBudgetSettle cmcBudgetSettle)
@@ -94,7 +92,6 @@ public class CmcBudgetSettleController extends BaseController
94 92
     /**
95 93
      * 删除cmc预结算
96 94
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:budgetSettle:remove')")
98 95
     @Log(title = "cmc预结算", businessType = BusinessType.DELETE)
99 96
 	@DeleteMapping("/{budgetSettleIds}")
100 97
     public AjaxResult remove(@PathVariable String[] budgetSettleIds)

+ 4
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcBudgetStaffController.java 查看文件

@@ -2,7 +2,9 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
5
+
6
+import com.ruoyi.common.utils.SnowFlake;
7
+
6 8
 import org.springframework.beans.factory.annotation.Autowired;
7 9
 import org.springframework.web.bind.annotation.GetMapping;
8 10
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +39,6 @@ public class CmcBudgetStaffController extends BaseController
37 39
     /**
38 40
      * 查询cmc人员预算列表
39 41
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:budgetStaff:list')")
41 42
     @GetMapping("/list")
42 43
     public TableDataInfo list(CmcBudgetStaff cmcBudgetStaff)
43 44
     {
@@ -49,7 +50,6 @@ public class CmcBudgetStaffController extends BaseController
49 50
     /**
50 51
      * 导出cmc人员预算列表
51 52
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:budgetStaff:export')")
53 53
     @Log(title = "cmc人员预算", businessType = BusinessType.EXPORT)
54 54
     @PostMapping("/export")
55 55
     public void export(HttpServletResponse response, CmcBudgetStaff cmcBudgetStaff)
@@ -62,7 +62,6 @@ public class CmcBudgetStaffController extends BaseController
62 62
     /**
63 63
      * 获取cmc人员预算详细信息
64 64
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:budgetStaff:query')")
66 65
     @GetMapping(value = "/{budgetStaffId}")
67 66
     public AjaxResult getInfo(@PathVariable("budgetStaffId") String budgetStaffId)
68 67
     {
@@ -72,18 +71,17 @@ public class CmcBudgetStaffController extends BaseController
72 71
     /**
73 72
      * 新增cmc人员预算
74 73
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:budgetStaff:add')")
76 74
     @Log(title = "cmc人员预算", businessType = BusinessType.INSERT)
77 75
     @PostMapping
78 76
     public AjaxResult add(@RequestBody CmcBudgetStaff cmcBudgetStaff)
79 77
     {
78
+        cmcBudgetStaff.setBudgetStaffId(new SnowFlake().generateId());
80 79
         return toAjax(cmcBudgetStaffService.insertCmcBudgetStaff(cmcBudgetStaff));
81 80
     }
82 81
 
83 82
     /**
84 83
      * 修改cmc人员预算
85 84
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:budgetStaff:edit')")
87 85
     @Log(title = "cmc人员预算", businessType = BusinessType.UPDATE)
88 86
     @PutMapping
89 87
     public AjaxResult edit(@RequestBody CmcBudgetStaff cmcBudgetStaff)
@@ -94,7 +92,6 @@ public class CmcBudgetStaffController extends BaseController
94 92
     /**
95 93
      * 删除cmc人员预算
96 94
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:budgetStaff:remove')")
98 95
     @Log(title = "cmc人员预算", businessType = BusinessType.DELETE)
99 96
 	@DeleteMapping("/{budgetStaffIds}")
100 97
     public AjaxResult remove(@PathVariable String[] budgetStaffIds)

+ 1
- 6
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarController.java 查看文件

@@ -8,7 +8,7 @@ import javax.servlet.http.HttpServletResponse;
8 8
 import com.ruoyi.common.utils.DateUtils;
9 9
 import com.ruoyi.system.service.ISysUserService;
10 10
 import org.springframework.beans.factory.annotation.Autowired;
11
-import org.springframework.security.access.prepost.PreAuthorize;
11
+
12 12
 import org.springframework.web.bind.annotation.GetMapping;
13 13
 import org.springframework.web.bind.annotation.PostMapping;
14 14
 import org.springframework.web.bind.annotation.PutMapping;
@@ -55,7 +55,6 @@ public class CmcCarController extends BaseController
55 55
     /**
56 56
      * 导出cmc车辆信息列表
57 57
      */
58
-    @PreAuthorize("@ss.hasPermi('oa:car:export')")
59 58
     @Log(title = "cmc车辆信息", businessType = BusinessType.EXPORT)
60 59
     @PostMapping("/export")
61 60
     public void export(HttpServletResponse response, CmcCar cmcCar)
@@ -68,7 +67,6 @@ public class CmcCarController extends BaseController
68 67
     /**
69 68
      * 获取cmc车辆信息详细信息
70 69
      */
71
-    @PreAuthorize("@ss.hasPermi('oa:car:query')")
72 70
     @GetMapping(value = "/{carId}")
73 71
     public AjaxResult getInfo(@PathVariable("carId") Integer carId)
74 72
     {
@@ -78,7 +76,6 @@ public class CmcCarController extends BaseController
78 76
     /**
79 77
      * 新增cmc车辆信息
80 78
      */
81
-    @PreAuthorize("@ss.hasPermi('oa:car:add')")
82 79
     @Log(title = "cmc车辆信息", businessType = BusinessType.INSERT)
83 80
     @PostMapping
84 81
     public AjaxResult add(@RequestBody CmcCar cmcCar)
@@ -103,7 +100,6 @@ public class CmcCarController extends BaseController
103 100
     /**
104 101
      * 修改cmc车辆信息
105 102
      */
106
-    @PreAuthorize("@ss.hasPermi('oa:car:edit')")
107 103
     @Log(title = "cmc车辆信息", businessType = BusinessType.UPDATE)
108 104
     @PutMapping
109 105
     public AjaxResult edit(@RequestBody CmcCar cmcCar)
@@ -114,7 +110,6 @@ public class CmcCarController extends BaseController
114 110
     /**
115 111
      * 删除cmc车辆信息
116 112
      */
117
-    @PreAuthorize("@ss.hasPermi('oa:car:remove')")
118 113
     @Log(title = "cmc车辆信息", businessType = BusinessType.DELETE)
119 114
 	@DeleteMapping("/{carIds}")
120 115
     public AjaxResult remove(@PathVariable Long[] carIds)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcCarExpenseController.java 查看文件

@@ -4,7 +4,6 @@ import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5 5
 
6 6
 import com.ruoyi.common.utils.SnowFlake;
7
-import org.springframework.security.access.prepost.PreAuthorize;
8 7
 import org.springframework.beans.factory.annotation.Autowired;
9 8
 import org.springframework.web.bind.annotation.GetMapping;
10 9
 import org.springframework.web.bind.annotation.PostMapping;
@@ -39,7 +38,6 @@ public class CmcCarExpenseController extends BaseController
39 38
     /**
40 39
      * 查询cmc车辆费用列表
41 40
      */
42
-    @PreAuthorize("@ss.hasPermi('oa:expense:list')")
43 41
     @GetMapping("/list")
44 42
     public TableDataInfo list(CmcCarExpense cmcCarExpense)
45 43
     {
@@ -51,7 +49,6 @@ public class CmcCarExpenseController extends BaseController
51 49
     /**
52 50
      * 导出cmc车辆费用列表
53 51
      */
54
-    @PreAuthorize("@ss.hasPermi('oa:expense:export')")
55 52
     @Log(title = "cmc车辆费用", businessType = BusinessType.EXPORT)
56 53
     @PostMapping("/export")
57 54
     public void export(HttpServletResponse response, CmcCarExpense cmcCarExpense)
@@ -64,7 +61,6 @@ public class CmcCarExpenseController extends BaseController
64 61
     /**
65 62
      * 获取cmc车辆费用详细信息
66 63
      */
67
-    @PreAuthorize("@ss.hasPermi('oa:expense:query')")
68 64
     @GetMapping(value = "/{carExpenseId}")
69 65
     public AjaxResult getInfo(@PathVariable("carExpenseId") String carExpenseId)
70 66
     {
@@ -74,7 +70,6 @@ public class CmcCarExpenseController extends BaseController
74 70
     /**
75 71
      * 新增cmc车辆费用
76 72
      */
77
-    @PreAuthorize("@ss.hasPermi('oa:expense:add')")
78 73
     @Log(title = "cmc车辆费用", businessType = BusinessType.INSERT)
79 74
     @PostMapping
80 75
     public AjaxResult add(@RequestBody CmcCarExpense cmcCarExpense)
@@ -86,7 +81,6 @@ public class CmcCarExpenseController extends BaseController
86 81
     /**
87 82
      * 修改cmc车辆费用
88 83
      */
89
-    @PreAuthorize("@ss.hasPermi('oa:expense:edit')")
90 84
     @Log(title = "cmc车辆费用", businessType = BusinessType.UPDATE)
91 85
     @PutMapping
92 86
     public AjaxResult edit(@RequestBody CmcCarExpense cmcCarExpense)
@@ -97,7 +91,6 @@ public class CmcCarExpenseController extends BaseController
97 91
     /**
98 92
      * 删除cmc车辆费用
99 93
      */
100
-    @PreAuthorize("@ss.hasPermi('oa:expense:remove')")
101 94
     @Log(title = "cmc车辆费用", businessType = BusinessType.DELETE)
102 95
 	@DeleteMapping("/{carExpenseIds}")
103 96
     public AjaxResult remove(@PathVariable String[] carExpenseIds)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcContractController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcContractController extends BaseController
37 36
     /**
38 37
      * 查询cmc合同评审列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:contract:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcContract cmcContract)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcContractController extends BaseController
49 47
     /**
50 48
      * 导出cmc合同评审列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:contract:export')")
53 50
     @Log(title = "cmc合同评审", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcContract cmcContract)
@@ -62,7 +59,6 @@ public class CmcContractController extends BaseController
62 59
     /**
63 60
      * 获取cmc合同评审详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:contract:query')")
66 62
     @GetMapping(value = "/{contractId}")
67 63
     public AjaxResult getInfo(@PathVariable("contractId") String contractId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcContractController extends BaseController
72 68
     /**
73 69
      * 新增cmc合同评审
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:contract:add')")
76 71
     @Log(title = "cmc合同评审", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcContract cmcContract)
@@ -83,7 +78,6 @@ public class CmcContractController extends BaseController
83 78
     /**
84 79
      * 修改cmc合同评审
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:contract:edit')")
87 81
     @Log(title = "cmc合同评审", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcContract cmcContract)
@@ -94,7 +88,6 @@ public class CmcContractController extends BaseController
94 88
     /**
95 89
      * 删除cmc合同评审
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:contract:remove')")
98 91
     @Log(title = "cmc合同评审", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{contractIds}")
100 93
     public AjaxResult remove(@PathVariable String[] contractIds)

+ 0
- 1
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcDeviceController.java 查看文件

@@ -6,7 +6,6 @@ import java.util.List;
6 6
 import javax.servlet.http.HttpServletResponse;
7 7
 
8 8
 import com.ruoyi.common.utils.DateUtils;
9
-import org.springframework.security.access.prepost.PreAuthorize;
10 9
 import org.springframework.beans.factory.annotation.Autowired;
11 10
 import org.springframework.web.bind.annotation.GetMapping;
12 11
 import org.springframework.web.bind.annotation.PostMapping;

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPostSalaryController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcPostSalaryController extends BaseController
37 36
     /**
38 37
      * 查询cmc岗位工资列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:salary:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcPostSalary cmcPostSalary)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcPostSalaryController extends BaseController
49 47
     /**
50 48
      * 导出cmc岗位工资列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:salary:export')")
53 50
     @Log(title = "cmc岗位工资", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcPostSalary cmcPostSalary)
@@ -62,7 +59,6 @@ public class CmcPostSalaryController extends BaseController
62 59
     /**
63 60
      * 获取cmc岗位工资详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:salary:query')")
66 62
     @GetMapping(value = "/{salaryId}")
67 63
     public AjaxResult getInfo(@PathVariable("salaryId") Integer salaryId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcPostSalaryController extends BaseController
72 68
     /**
73 69
      * 新增cmc岗位工资
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:salary:add')")
76 71
     @Log(title = "cmc岗位工资", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcPostSalary cmcPostSalary)
@@ -83,7 +78,6 @@ public class CmcPostSalaryController extends BaseController
83 78
     /**
84 79
      * 修改cmc岗位工资
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:salary:edit')")
87 81
     @Log(title = "cmc岗位工资", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcPostSalary cmcPostSalary)
@@ -94,7 +88,6 @@ public class CmcPostSalaryController extends BaseController
94 88
     /**
95 89
      * 删除cmc岗位工资
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:salary:remove')")
98 91
     @Log(title = "cmc岗位工资", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{salaryIds}")
100 93
     public AjaxResult remove(@PathVariable Integer[] salaryIds)

+ 0
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcPriceController.java 查看文件

@@ -1,12 +1,10 @@
1 1
 package com.ruoyi.web.controller.oa;
2 2
 
3
-import java.math.BigDecimal;
4 3
 import java.util.ArrayList;
5 4
 import java.util.List;
6 5
 
7 6
 import com.alibaba.fastjson2.JSONObject;
8 7
 import org.apache.ibatis.annotations.Param;
9
-import org.springframework.security.access.prepost.PreAuthorize;
10 8
 import org.springframework.beans.factory.annotation.Autowired;
11 9
 import org.springframework.web.bind.annotation.GetMapping;
12 10
 import org.springframework.web.bind.annotation.PostMapping;
@@ -43,7 +41,6 @@ public class CmcPriceController extends BaseController
43 41
     /**
44 42
      * 查询单价表列表
45 43
      */
46
-    @PreAuthorize("@ss.hasPermi('oa:price:list')")
47 44
     @GetMapping("/list")
48 45
     public TableDataInfo list(CmcPrice cmcPrice)
49 46
     {
@@ -55,7 +52,6 @@ public class CmcPriceController extends BaseController
55 52
     /**
56 53
      * 导出单价表列表
57 54
      */
58
-    @PreAuthorize("@ss.hasPermi('oa:price:export')")
59 55
     @Log(title = "单价表", businessType = BusinessType.EXPORT)
60 56
     @PostMapping("/export")
61 57
     public void export(HttpServletResponse response, CmcPrice cmcPrice)
@@ -68,7 +64,6 @@ public class CmcPriceController extends BaseController
68 64
     /**
69 65
      * 获取单价表详细信息
70 66
      */
71
-    @PreAuthorize("@ss.hasPermi('oa:price:query')")
72 67
     @GetMapping(value = "/{id}")
73 68
     public AjaxResult getInfo(@PathVariable("id") Long id)
74 69
     {
@@ -147,7 +142,6 @@ public class CmcPriceController extends BaseController
147 142
     /**
148 143
      * 新增单价表
149 144
      */
150
-    @PreAuthorize("@ss.hasPermi('oa:price:add')")
151 145
     @Log(title = "单价表", businessType = BusinessType.INSERT)
152 146
     @PostMapping
153 147
     public AjaxResult add(@RequestBody CmcPrice cmcPrice)
@@ -158,7 +152,6 @@ public class CmcPriceController extends BaseController
158 152
     /**
159 153
      * 修改单价表
160 154
      */
161
-    @PreAuthorize("@ss.hasPermi('oa:price:edit')")
162 155
     @Log(title = "单价表", businessType = BusinessType.UPDATE)
163 156
     @PutMapping
164 157
     public AjaxResult edit(@RequestBody CmcPrice cmcPrice)
@@ -169,7 +162,6 @@ public class CmcPriceController extends BaseController
169 162
     /**
170 163
      * 删除单价表
171 164
      */
172
-    @PreAuthorize("@ss.hasPermi('oa:price:remove')")
173 165
     @Log(title = "单价表", businessType = BusinessType.DELETE)
174 166
     @DeleteMapping("/{ids}")
175 167
     public AjaxResult remove(@PathVariable Long[] ids)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectCommentController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcProjectCommentController extends BaseController
37 36
     /**
38 37
      * 查询cmc项目审批列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:projectComment:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcProjectComment cmcProjectComment)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcProjectCommentController extends BaseController
49 47
     /**
50 48
      * 导出cmc项目审批列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:projectComment:export')")
53 50
     @Log(title = "cmc项目审批", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcProjectComment cmcProjectComment)
@@ -62,7 +59,6 @@ public class CmcProjectCommentController extends BaseController
62 59
     /**
63 60
      * 获取cmc项目审批详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:projectComment:query')")
66 62
     @GetMapping(value = "/{projectId}")
67 63
     public AjaxResult getInfo(@PathVariable("projectId") String projectId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcProjectCommentController extends BaseController
72 68
     /**
73 69
      * 新增cmc项目审批
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:projectComment:add')")
76 71
     @Log(title = "cmc项目审批", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcProjectComment cmcProjectComment)
@@ -83,7 +78,6 @@ public class CmcProjectCommentController extends BaseController
83 78
     /**
84 79
      * 修改cmc项目审批
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:projectComment:edit')")
87 81
     @Log(title = "cmc项目审批", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcProjectComment cmcProjectComment)
@@ -94,7 +88,6 @@ public class CmcProjectCommentController extends BaseController
94 88
     /**
95 89
      * 删除cmc项目审批
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:projectComment:remove')")
98 91
     @Log(title = "cmc项目审批", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{projectIds}")
100 93
     public AjaxResult remove(@PathVariable String[] projectIds)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectProgressController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcProjectProgressController extends BaseController
37 36
     /**
38 37
      * 查询cmc项目进度列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:projectProgress:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcProjectProgress cmcProjectProgress)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcProjectProgressController extends BaseController
49 47
     /**
50 48
      * 导出cmc项目进度列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:projectProgress:export')")
53 50
     @Log(title = "cmc项目进度", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcProjectProgress cmcProjectProgress)
@@ -62,7 +59,6 @@ public class CmcProjectProgressController extends BaseController
62 59
     /**
63 60
      * 获取cmc项目进度详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:projectProgress:query')")
66 62
     @GetMapping(value = "/{progressId}")
67 63
     public AjaxResult getInfo(@PathVariable("progressId") String progressId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcProjectProgressController extends BaseController
72 68
     /**
73 69
      * 新增cmc项目进度
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:projectProgress:add')")
76 71
     @Log(title = "cmc项目进度", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcProjectProgress cmcProjectProgress)
@@ -83,7 +78,6 @@ public class CmcProjectProgressController extends BaseController
83 78
     /**
84 79
      * 修改cmc项目进度
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:projectProgress:edit')")
87 81
     @Log(title = "cmc项目进度", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcProjectProgress cmcProjectProgress)
@@ -94,7 +88,6 @@ public class CmcProjectProgressController extends BaseController
94 88
     /**
95 89
      * 删除cmc项目进度
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:projectProgress:remove')")
98 91
     @Log(title = "cmc项目进度", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{progressIds}")
100 93
     public AjaxResult remove(@PathVariable String[] progressIds)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcProjectWorkerController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcProjectWorkerController extends BaseController
37 36
     /**
38 37
      * 查询cmc项目人员列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:projectWorker:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcProjectWorker cmcProjectWorker)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcProjectWorkerController extends BaseController
49 47
     /**
50 48
      * 导出cmc项目人员列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:projectWorker:export')")
53 50
     @Log(title = "cmc项目人员", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcProjectWorker cmcProjectWorker)
@@ -62,7 +59,6 @@ public class CmcProjectWorkerController extends BaseController
62 59
     /**
63 60
      * 获取cmc项目人员详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:projectWorker:query')")
66 62
     @GetMapping(value = "/{id}")
67 63
     public AjaxResult getInfo(@PathVariable("id") String id)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcProjectWorkerController extends BaseController
72 68
     /**
73 69
      * 新增cmc项目人员
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:projectWorker:add')")
76 71
     @Log(title = "cmc项目人员", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcProjectWorker cmcProjectWorker)
@@ -83,7 +78,6 @@ public class CmcProjectWorkerController extends BaseController
83 78
     /**
84 79
      * 修改cmc项目人员
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:projectWorker:edit')")
87 81
     @Log(title = "cmc项目人员", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcProjectWorker cmcProjectWorker)
@@ -94,7 +88,6 @@ public class CmcProjectWorkerController extends BaseController
94 88
     /**
95 89
      * 删除cmc项目人员
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:projectWorker:remove')")
98 91
     @Log(title = "cmc项目人员", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{ids}")
100 93
     public AjaxResult remove(@PathVariable String[] ids)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcSafeController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcSafeController extends BaseController
37 36
     /**
38 37
      * 查询cmc安全交底列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:safe:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcSafe cmcSafe)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcSafeController extends BaseController
49 47
     /**
50 48
      * 导出cmc安全交底列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:safe:export')")
53 50
     @Log(title = "cmc安全交底", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcSafe cmcSafe)
@@ -62,7 +59,6 @@ public class CmcSafeController extends BaseController
62 59
     /**
63 60
      * 获取cmc安全交底详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:safe:query')")
66 62
     @GetMapping(value = "/{safeId}")
67 63
     public AjaxResult getInfo(@PathVariable("safeId") String safeId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcSafeController extends BaseController
72 68
     /**
73 69
      * 新增cmc安全交底
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:safe:add')")
76 71
     @Log(title = "cmc安全交底", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcSafe cmcSafe)
@@ -83,7 +78,6 @@ public class CmcSafeController extends BaseController
83 78
     /**
84 79
      * 修改cmc安全交底
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:safe:edit')")
87 81
     @Log(title = "cmc安全交底", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcSafe cmcSafe)
@@ -94,7 +88,6 @@ public class CmcSafeController extends BaseController
94 88
     /**
95 89
      * 删除cmc安全交底
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:safe:remove')")
98 91
     @Log(title = "cmc安全交底", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{safeIds}")
100 93
     public AjaxResult remove(@PathVariable String[] safeIds)

+ 0
- 7
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTechnicalController.java 查看文件

@@ -2,7 +2,6 @@ package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcTechnicalController extends BaseController
37 36
     /**
38 37
      * 查询cmc技术方案列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:technical:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcTechnical cmcTechnical)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcTechnicalController extends BaseController
49 47
     /**
50 48
      * 导出cmc技术方案列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:technical:export')")
53 50
     @Log(title = "cmc技术方案", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcTechnical cmcTechnical)
@@ -62,7 +59,6 @@ public class CmcTechnicalController extends BaseController
62 59
     /**
63 60
      * 获取cmc技术方案详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:technical:query')")
66 62
     @GetMapping(value = "/{technicalId}")
67 63
     public AjaxResult getInfo(@PathVariable("technicalId") String technicalId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcTechnicalController extends BaseController
72 68
     /**
73 69
      * 新增cmc技术方案
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:technical:add')")
76 71
     @Log(title = "cmc技术方案", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcTechnical cmcTechnical)
@@ -83,7 +78,6 @@ public class CmcTechnicalController extends BaseController
83 78
     /**
84 79
      * 修改cmc技术方案
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:technical:edit')")
87 81
     @Log(title = "cmc技术方案", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcTechnical cmcTechnical)
@@ -94,7 +88,6 @@ public class CmcTechnicalController extends BaseController
94 88
     /**
95 89
      * 删除cmc技术方案
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:technical:remove')")
98 91
     @Log(title = "cmc技术方案", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{technicalIds}")
100 93
     public AjaxResult remove(@PathVariable String[] technicalIds)

+ 1
- 8
oa-back/ruoyi-admin/src/main/java/com/ruoyi/web/controller/oa/CmcTenderController.java 查看文件

@@ -1,8 +1,7 @@
1
-package com.ruoyi.oa.controller;
1
+package com.ruoyi.web.controller.oa;
2 2
 
3 3
 import java.util.List;
4 4
 import javax.servlet.http.HttpServletResponse;
5
-import org.springframework.security.access.prepost.PreAuthorize;
6 5
 import org.springframework.beans.factory.annotation.Autowired;
7 6
 import org.springframework.web.bind.annotation.GetMapping;
8 7
 import org.springframework.web.bind.annotation.PostMapping;
@@ -37,7 +36,6 @@ public class CmcTenderController extends BaseController
37 36
     /**
38 37
      * 查询投标管理列表
39 38
      */
40
-    @PreAuthorize("@ss.hasPermi('oa:tender:list')")
41 39
     @GetMapping("/list")
42 40
     public TableDataInfo list(CmcTender cmcTender)
43 41
     {
@@ -49,7 +47,6 @@ public class CmcTenderController extends BaseController
49 47
     /**
50 48
      * 导出投标管理列表
51 49
      */
52
-    @PreAuthorize("@ss.hasPermi('oa:tender:export')")
53 50
     @Log(title = "投标管理", businessType = BusinessType.EXPORT)
54 51
     @PostMapping("/export")
55 52
     public void export(HttpServletResponse response, CmcTender cmcTender)
@@ -62,7 +59,6 @@ public class CmcTenderController extends BaseController
62 59
     /**
63 60
      * 获取投标管理详细信息
64 61
      */
65
-    @PreAuthorize("@ss.hasPermi('oa:tender:query')")
66 62
     @GetMapping(value = "/{tenderId}")
67 63
     public AjaxResult getInfo(@PathVariable("tenderId") String tenderId)
68 64
     {
@@ -72,7 +68,6 @@ public class CmcTenderController extends BaseController
72 68
     /**
73 69
      * 新增投标管理
74 70
      */
75
-    @PreAuthorize("@ss.hasPermi('oa:tender:add')")
76 71
     @Log(title = "投标管理", businessType = BusinessType.INSERT)
77 72
     @PostMapping
78 73
     public AjaxResult add(@RequestBody CmcTender cmcTender)
@@ -83,7 +78,6 @@ public class CmcTenderController extends BaseController
83 78
     /**
84 79
      * 修改投标管理
85 80
      */
86
-    @PreAuthorize("@ss.hasPermi('oa:tender:edit')")
87 81
     @Log(title = "投标管理", businessType = BusinessType.UPDATE)
88 82
     @PutMapping
89 83
     public AjaxResult edit(@RequestBody CmcTender cmcTender)
@@ -94,7 +88,6 @@ public class CmcTenderController extends BaseController
94 88
     /**
95 89
      * 删除投标管理
96 90
      */
97
-    @PreAuthorize("@ss.hasPermi('oa:tender:remove')")
98 91
     @Log(title = "投标管理", businessType = BusinessType.DELETE)
99 92
 	@DeleteMapping("/{tenderIds}")
100 93
     public AjaxResult remove(@PathVariable String[] tenderIds)

正在加载...
取消
保存