diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java index e934bef48..9e013ce22 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderController.java @@ -563,6 +563,7 @@ public class OrderController { // 生产单超期(工作台) @GetMapping("/getOrderOverdue") @Operation(summary = "生产单超期 (工作台)") + @PreAuthorize("@ss.hasPermission('homePage:work:be-overdue')") public CommonResult> getOrderOverdue(@Valid PageParam pageParam) { return success(orderService.getOrderOverdue(pageParam)); } @@ -570,6 +571,7 @@ public class OrderController { // 生产单到期告警 (工作台) @GetMapping("/getOrderWarn") @Operation(summary = "生产单到期告警 (工作台)") + @PreAuthorize("@ss.hasPermission('homePage:work:completed-today')") public CommonResult> getOrderNear(@Valid PageParam pageParam) { return success(orderService.getOrderNear(pageParam)); } diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderStatisticsController.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderStatisticsController.java index 800734a48..d9fd07b07 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderStatisticsController.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/controller/admin/order/OrderStatisticsController.java @@ -5,6 +5,7 @@ import com.cf.imes.module.executor.controller.admin.order.vo.order.OrderStatisti import com.cf.imes.module.executor.service.order.OrderStatisticsService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -29,66 +30,77 @@ public class OrderStatisticsController { @GetMapping("/total") @Operation(summary = "生产单总数") + @PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')") public CommonResult getOrderCount() { return success(orderStatisticsService.orderCount()); } @GetMapping("/today/increase") @Operation(summary = "今日新增生产单总数") + @PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')") public CommonResult getOrderCountToday() { return success(orderStatisticsService.orderCountToday()); } @GetMapping("/today/finish") @Operation(summary = "今日生产单完成总数") + @PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')") public CommonResult getOrderCountTodayFinish() { return success(orderStatisticsService.orderCountTodayFinish()); } @GetMapping("/producing/total") @Operation(summary = "生产中生产单总数") + @PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')") public CommonResult getOrderCountProduce() { return success(orderStatisticsService.orderCountProduce()); } @GetMapping("/producing/square") @Operation(summary = "生产中生产平方数") + @PreAuthorize("@ss.hasPermission('homePage:analysis:order-statistic')") public CommonResult getOrderSquareProduce() { return success(orderStatisticsService.orderSquareProduce()); } @GetMapping("/orderStatus/group") @Operation(summary = "生产单状态分组统计") + @PreAuthorize("@ss.hasPermission('homePage:analysis:order-status')") public CommonResult> getOrderStatusCount(@Valid OrderStatisticsReqVO reqVO) { return success(orderStatisticsService.getOrderStatusCount(reqVO)); } @GetMapping("/orderAndPlanCount/group") @Operation(summary = "生产单、排单单量分组统计") + @PreAuthorize("@ss.hasPermission('homePage:analysis:orderAndPlan-count')") public CommonResult> getOrderAndPlanCountGroup(@Valid OrderStatisticsReqVO reqVO) { return success(orderStatisticsService.getOrderAndPlanCountGroup(reqVO)); } @GetMapping("/orderAndPlanArea/group") @Operation(summary = "生产单、排单平方数分组统计") + @PreAuthorize("@ss.hasPermission('homePage:analysis:orderAndPlan-square-num')") public CommonResult> getOrderAndPlanAreaGroup(@Valid OrderStatisticsReqVO reqVO) { return success(orderStatisticsService.getOrderAndPlanAreaSumGroup(reqVO)); } @GetMapping("/plateCount/group") @Operation(summary = "小板数量分组统计") + @PreAuthorize("@ss.hasPermission('homePage:analysis:plate-count')") public CommonResult> getPlateCount(@Valid OrderStatisticsReqVO reqVO) { return success(orderStatisticsService.getOrderPlateCountGroup(reqVO)); } @GetMapping("/plateArea/group") @Operation(summary = "小板面积分组统计") + @PreAuthorize("@ss.hasPermission('homePage:analysis:plate-area')") public CommonResult> getPlateArea(@Valid OrderStatisticsReqVO reqVO) { return success(orderStatisticsService.getOrderPlateAreaGroup(reqVO)); } @GetMapping("/bigPlateCount/group") @Operation(summary = "大板数量分组统计") + @PreAuthorize("@ss.hasPermission('homePage:analysis:goods-count')") public CommonResult> getBigPlateCount(@Valid OrderStatisticsReqVO reqVO) { return success(orderStatisticsService.getBigPlateCountGroup(reqVO)); }