diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plan/PlanController.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plan/PlanController.java index 23175db65..f19e7e73d 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plan/PlanController.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/plan/PlanController.java @@ -37,14 +37,14 @@ public class PlanController { @PostMapping("/create") @Operation(summary = "创建排单") - @PreAuthorize("@ss.hasPermission('executor:plan:create')") + @PreAuthorize("@ss.hasPermission('placeorder:create')") public CommonResult createPlan(@Validated(CreateGroup.class) @RequestBody PlanSaveReqVO createReqVO) { return success(planService.createPlan(createReqVO)); } @PutMapping("/update") @Operation(summary = "更新排单") - @PreAuthorize("@ss.hasPermission('executor:plan:update')") + @PreAuthorize("@ss.hasPermission('placeorder:update')") public CommonResult updatePlan(@Validated(UpdateGroup.class) @RequestBody PlanSaveReqVO updateReqVO) { planService.updatePlan(updateReqVO); return success(true); @@ -53,7 +53,7 @@ public class PlanController { @DeleteMapping("/delete") @Operation(summary = "删除排单") @Parameter(name = "id", description = "排单id", required = true) - @PreAuthorize("@ss.hasPermission('executor:plan:delete')") + @PreAuthorize("@ss.hasPermission('placeorder:delete')") public CommonResult deletePlan(@RequestParam("id") Long id) { return success(planService.deletePlan(id)); } @@ -70,7 +70,7 @@ public class PlanController { @GetMapping("/get") @Operation(summary = "获得排单") @Parameter(name = "id", description = "排单id", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('executor:plan:query')") + @PreAuthorize("@ss.hasPermission('placeorder:query')") public CommonResult getPlan(@RequestParam("id") Long id) { PlanRespVO plan = planService.getPlan(id); return success(BeanUtils.toBean(plan, PlanRespVO.class)); @@ -85,14 +85,14 @@ public class PlanController { @GetMapping("getOrderByPlan") @Operation(summary = "根据排单获取生产单分页") - @PreAuthorize("@ss.hasPermission('executor:plan:query')") + @PreAuthorize("@ss.hasPermission('placeorder:orderlist')") public CommonResult> getOrderByPlanId(@Valid PlanOrderPageReqVO pageReqVO) { return success(planService.getOrderByPlanId(pageReqVO)); } @GetMapping("/page") @Operation(summary = "获得排单分页") - @PreAuthorize("@ss.hasPermission('executor:plan:query')") + @PreAuthorize("@ss.hasPermission('placeorder:query')") public CommonResult> getPlanPage(@Valid PlanPageReqVO pageReqVO) { PageResult pageResult = planService.getPlanPage(pageReqVO); return success(BeanUtils.toBean(pageResult, PlanRespVO.class)); @@ -100,14 +100,14 @@ public class PlanController { @PostMapping("/setSort") @Operation(summary = "设置排单优先级") - @PreAuthorize("@ss.hasPermission('executor:plan:query')") + @PreAuthorize("@ss.hasPermission('placeorder:priority')") public CommonResult setSort(@Valid @NotEmpty(message = "参数不能空") @RequestBody List list) { return success(planService.setSort(list)); } @GetMapping("getNotPlanOrderListPage") @Operation(summary = "获取未排单的板材生产单板材分页列表") - @PreAuthorize("@ss.hasPermission('executor:plan:query')") + @PreAuthorize("@ss.hasPermission('placeorder:query')") public CommonResult> getOrderPage(@Valid OrderPageReqVOCopy pageReqVO) { return success(planService.getOrderPage(pageReqVO)); } diff --git a/cf-module-prod-manage/cf-module-prod-manage-biz/src/main/java/com/cf/imes/module/manage/controller/admin/plate/RemainPlateController.java b/cf-module-prod-manage/cf-module-prod-manage-biz/src/main/java/com/cf/imes/module/manage/controller/admin/plate/RemainPlateController.java index e2a61cf88..1d41fb990 100644 --- a/cf-module-prod-manage/cf-module-prod-manage-biz/src/main/java/com/cf/imes/module/manage/controller/admin/plate/RemainPlateController.java +++ b/cf-module-prod-manage/cf-module-prod-manage-biz/src/main/java/com/cf/imes/module/manage/controller/admin/plate/RemainPlateController.java @@ -102,7 +102,7 @@ public class RemainPlateController { @GetMapping("/page") @Operation(summary = "获得生产单余料板表分页") - @PreAuthorize("@ss.hasPermission('manage:remain-plate:query')") + @PreAuthorize("@ss.hasPermission('placeorder:remain')") public CommonResult> getRemainPlatePage(@Valid RemainPlatePageReqVO pageReqVO) { PageResult pageResult = remainPlateService.getRemainPlatePage(pageReqVO); return success(BeanUtils.toBean(pageResult, RemainPlateRespVO.class));