Explorar o código

feat:控制器权限

hmc hai 1 ano
pai
achega
6dce8fda65

+ 6 - 6
zkqy-custom-business/src/main/java/com/zkqy/business/controller/AmmunitionPlanInformationIntermediateTableController.java

@@ -41,7 +41,7 @@ public class AmmunitionPlanInformationIntermediateTableController extends BaseCo
     /**
      * 新增加弹计划信息
      */
-    @PreAuthorize("@ss.hasPermi('business:table:add')")
+//    @PreAuthorize("@ss.hasPermi('business:table:add')")
     @Log(title = "加弹计划信息", businessType = BusinessType.INSERT)
     @PostMapping
     @ApiOperation(value = "新增加弹计划信息")
@@ -54,7 +54,7 @@ public class AmmunitionPlanInformationIntermediateTableController extends BaseCo
     /**
      * 查询加弹计划信息列表
      */
-    @PreAuthorize("@ss.hasPermi('business:table:list')")
+//    @PreAuthorize("@ss.hasPermi('business:table:list')")
     @GetMapping("/list")
     @ApiOperation(value = "查询加弹计划信息列表")
     public AjaxResult list(AmmunitionPlanInformationIntermediateTableVo ammunitionPlanInformationIntermediateTable) {
@@ -63,7 +63,7 @@ public class AmmunitionPlanInformationIntermediateTableController extends BaseCo
         return AjaxResult.success(list);
     }
 
-    @PreAuthorize("@ss.hasPermi('business:table:list')")
+//    @PreAuthorize("@ss.hasPermi('business:table:list')")
     @GetMapping("/list2")
     @ApiOperation(value = "查询加弹计划信息列表")
     public AjaxResult list2(AmmunitionPlanInformationIntermediateTableVo ammunitionPlanInformationIntermediateTable) {
@@ -71,7 +71,7 @@ public class AmmunitionPlanInformationIntermediateTableController extends BaseCo
         return AjaxResult.success(list);
     }
 
-    @PreAuthorize("@ss.hasPermi('business:table:list')")
+//    @PreAuthorize("@ss.hasPermi('business:table:list')")
     @GetMapping("/getAllPlanListByMachineId")
     @ApiOperation(value = "查询加弹计划信息列表")
     public AjaxResult getAllPlanListByMachineId(@RequestParam("machineId") String machineId) {
@@ -80,7 +80,7 @@ public class AmmunitionPlanInformationIntermediateTableController extends BaseCo
         return AjaxResult.success(newList);
     }
 
-    @PreAuthorize("@ss.hasPermi('business:table:list')")
+//    @PreAuthorize("@ss.hasPermi('business:table:list')")
     @GetMapping("/getAllPlanListByProductTypeAndStatus")
     @ApiOperation(value = "查询加弹计划信息列表")
     public AjaxResult getAllPlanListByProductType(DetailsOfTheRefuelingPlan detailsOfTheRefuelingPlan) {
@@ -105,7 +105,7 @@ public class AmmunitionPlanInformationIntermediateTableController extends BaseCo
     /**
      * 获取加弹计划信息详细信息
      */
-    @PreAuthorize("@ss.hasPermi('business:table:query')")
+//    @PreAuthorize("@ss.hasPermi('business:table:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation(value = "获取加弹计划信息详细信息")
     public AjaxResult getInfo(@PathVariable("id") Long id) {

+ 9 - 9
zkqy-custom-business/src/main/java/com/zkqy/business/controller/DetailsOfTheRefuelingPlanController.java

@@ -47,7 +47,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 查询加弹计划详细信息列表
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:list')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:list')")
     @GetMapping("/list")
     @ApiOperation(value = "查询加弹计划详细信息列表")
     public TableDataInfo list(DetailsOfTheRefuelingPlan detailsOfTheRefuelingPlan) {
@@ -59,7 +59,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 查询加弹计划详细信息列表
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:list')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:list')")
     @GetMapping("/listStatus/{id}")
     @ApiOperation(value = "查询加弹计划详细信息列表")
     public AjaxResult listStatus(@PathVariable ("id") String id) {
@@ -84,7 +84,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
         return AjaxResult.success(listArray);
     }
 
-    @PreAuthorize("@ss.hasPermi('system:plan:list')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:list')")
     @PostMapping("/updateLineStates/{id}/{mids}")
     @ApiOperation(value = "查询加弹计划详细信息列表")
     public AjaxResult updateLineStates(@PathVariable("id") String id,@PathVariable("mids") String ids) {
@@ -169,7 +169,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 导出加弹计划详细信息列表
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:export')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:export')")
     @Log(title = "加弹计划详细信息", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
     @ApiOperation(value = "导出加弹计划详细信息列表")
@@ -182,7 +182,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 获取加弹计划详细信息详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:query')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation(value = "获取加弹计划详细信息详细信息")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
@@ -192,7 +192,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 新增加弹计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:add')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:add')")
     @Log(title = "加弹计划详细信息", businessType = BusinessType.INSERT)
     @PostMapping
     @ApiOperation(value = "新增加弹计划详细信息")
@@ -203,7 +203,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 修改加弹计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:edit')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:edit')")
     @Log(title = "加弹计划详细信息", businessType = BusinessType.UPDATE)
     @PutMapping
     @ApiOperation(value = "修改加弹计划详细信息")
@@ -214,7 +214,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 删除加弹计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:remove')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:remove')")
     @Log(title = "加弹计划详细信息", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     @ApiOperation(value = "删除加弹计划详细信息")
@@ -225,7 +225,7 @@ public class DetailsOfTheRefuelingPlanController extends BaseController {
     /**
      * 删除加弹计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:plan:remove')")
+//    @PreAuthorize("@ss.hasPermi('system:plan:remove')")
     @Log(title = "加弹计划详细信息", businessType = BusinessType.DELETE)
     @DeleteMapping("/remove/{id}")
     @ApiOperation(value = "删除加弹计划详细信息")

+ 8 - 8
zkqy-custom-business/src/main/java/com/zkqy/business/controller/DetailsOfTheRefuelingPlanSpinningController.java

@@ -42,7 +42,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     /**
      * 查询纺丝计划详细信息列表
      */
-    @PreAuthorize("@ss.hasPermi('system:spinning:list')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:list')")
     @GetMapping("/list")
     @ApiOperation(value = "查询纺丝计划详细信息列表")
     public TableDataInfo list(DetailsOfTheRefuelingPlanSpinningVo detailsOfTheRefuelingPlanSpinning) {
@@ -53,7 +53,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     /**
      * 查询纺丝计划详细信息列表
      */
-    @PreAuthorize("@ss.hasPermi('system:spinning:list')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:list')")
     @GetMapping("/list/getPlanSpinningInfo")
     @ApiOperation(value = "查询纺丝计划详细信息列表")
     public AjaxResult getPlanSpinningInfo(DetailsOfTheRefuelingPlanSpinningVo detailsOfTheRefuelingPlanSpinning) {
@@ -67,7 +67,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     /**
      * 新增纺丝计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:spinning:add')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:add')")
     @Log(title = "纺丝计划详细信息", businessType = BusinessType.INSERT)
     @PostMapping
     @ApiOperation(value = "新增纺丝计划详细信息")
@@ -92,7 +92,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     /**
      * 获取纺丝计划详细信息详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:spinning:query')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:query')")
     @GetMapping(value = "/{id}")
     @ApiOperation(value = "获取纺丝计划详细信息详细信息")
     public AjaxResult getInfo(@PathVariable("id") Long id) {
@@ -113,7 +113,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     /**
      * 修改纺丝计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:spinning:edit')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:edit')")
     @Log(title = "纺丝计划详细信息", businessType = BusinessType.UPDATE)
     @PutMapping
     @ApiOperation(value = "修改纺丝计划详细信息")
@@ -121,7 +121,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
         return toAjax(detailsOfTheRefuelingPlanSpinningService.updateDetailsOfTheRefuelingPlanSpinning(detailsOfTheRefuelingPlanSpinning));
     }
 
-    @PreAuthorize("@ss.hasPermi('system:spinning:edit')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:edit')")
     @Log(title = "纺丝计划详细信息", businessType = BusinessType.UPDATE)
     @PutMapping("/update/updateSpinningInfoPlanOne")
     @ApiOperation(value = "修改纺丝计划详细信息")
@@ -132,7 +132,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     /**
      * 删除纺丝计划详细信息
      */
-    @PreAuthorize("@ss.hasPermi('system:spinning:remove')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:remove')")
     @Log(title = "纺丝计划详细信息", businessType = BusinessType.DELETE)
     @DeleteMapping("/{ids}")
     @ApiOperation(value = "删除纺丝计划详细信息")
@@ -141,7 +141,7 @@ public class DetailsOfTheRefuelingPlanSpinningController extends BaseController
     }
 
 
-    @PreAuthorize("@ss.hasPermi('system:spinning:remove')")
+//    @PreAuthorize("@ss.hasPermi('system:spinning:remove')")
     @Log(title = "纺丝计划详细信息", businessType = BusinessType.DELETE)
     @DeleteMapping("/remove/{id}")
     @ApiOperation(value = "删除纺丝计划详细信息")