From 06da2219a9d1bda2e26f25691dcabd11caa25c83 Mon Sep 17 00:00:00 2001 From: starrysky <838252223@qq.com> Date: Mon, 24 Feb 2020 23:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=97=E6=9D=90=E9=87=87=E8=B4=AD=E6=9D=83?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../purchase/rest/ConsumablesPurchaseOrderController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/wms/purchase/rest/ConsumablesPurchaseOrderController.java b/eladmin-system/src/main/java/me/zhengjie/modules/wms/purchase/rest/ConsumablesPurchaseOrderController.java index d28002a7..81ded79b 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/wms/purchase/rest/ConsumablesPurchaseOrderController.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/wms/purchase/rest/ConsumablesPurchaseOrderController.java @@ -78,7 +78,7 @@ public class ConsumablesPurchaseOrderController { @Log("审核耗材采购单") @ApiOperation(value = "审核耗材采购单") @PostMapping(value = "/auditConsumablesPurchaseOrder") - @PreAuthorize("hasAnyRole('ADMIN','PRODUCTPURCHASEORDER_ALL','PRODUCTPURCHASEORDER_AUDIT')") + @PreAuthorize("hasAnyRole('ADMIN','CONSUMABLESPURCHASEORDER_ALL','CONSUMABLESPURCHASEORDER_AUDIT')") public ResponseEntity auditConsumablesPurchaseOrder(@Validated @RequestBody AuditConsumablesPurchaseOrderRequest auditConsumablesPurchaseOrderRequest){ consumablesPurchaseOrderService.auditConsumablesPurchaseOrder(auditConsumablesPurchaseOrderRequest); return new ResponseEntity(HttpStatus.OK); @@ -86,7 +86,7 @@ public class ConsumablesPurchaseOrderController { @Log("初始化耗材采购单编号") @GetMapping(value = "/initConsumablesPurchaseOrderCode") - @PreAuthorize("hasAnyRole('ADMIN','PRODUCTPURCHASEORDER_ALL')") + @PreAuthorize("hasAnyRole('ADMIN','CONSUMABLESPURCHASEORDER_ALL')") public ResponseEntity initConsumablesPurchaseOrderCode(){ DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyyMMddHHmmssSSS");//设置日期格式 String supplierCode = "CP"+ LocalDateTime.now().format(fmt); @@ -96,7 +96,7 @@ public class ConsumablesPurchaseOrderController { @Log("查看耗材采购详情") @ApiOperation(value = "查看产品采购详情") @GetMapping(value = "/consumablesPurchaseOrder/{id}") - @PreAuthorize("hasAnyRole('ADMIN','PRODUCTPURCHASEORDER_ALL','PRODUCTPURCHASEORDER_DETAIL_BY_I')") + @PreAuthorize("hasAnyRole('ADMIN','CONSUMABLESPURCHASEORDER_ALL','CONSUMABLESPURCHASEORDER_DETAIL_BY_ID')") public ResponseEntity getOutSourceInspectionCertificate(@PathVariable Long id){ return new ResponseEntity(consumablesPurchaseOrderService.findById(id), HttpStatus.OK); }