From d4651461e034d835dab1d17798b2969b60279043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=9D=E9=BE=99?= Date: Mon, 22 May 2023 16:45:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8DgetById()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReagentConsumableInventoryController.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/main/java/digital/laboratory/platform/reagent/controller/ReagentConsumableInventoryController.java b/src/main/java/digital/laboratory/platform/reagent/controller/ReagentConsumableInventoryController.java index c79a0e7..0885c04 100644 --- a/src/main/java/digital/laboratory/platform/reagent/controller/ReagentConsumableInventoryController.java +++ b/src/main/java/digital/laboratory/platform/reagent/controller/ReagentConsumableInventoryController.java @@ -60,6 +60,25 @@ public class ReagentConsumableInventoryController { private final OssFile ossFile; + /** + * 通过id查询试剂耗材库存 + * + * @param reagentConsumableInventoryId id + * @return R + */ + @ApiOperation(value = "通过id查询", notes = "通过id查询") + @GetMapping("/{reagentConsumableInventoryId}") +// @PreAuthorize("@pms.hasPermission('reagent_reagent_consumable_inventory_get')") + public R getById(@PathVariable("reagentConsumableInventoryId") String reagentConsumableInventoryId, HttpServletRequest theHttpServletRequest) { + Principal principal = theHttpServletRequest.getUserPrincipal(); + DLPUser dlpUser = (DLPUser) ((OAuth2Authentication) principal).getUserAuthentication().getPrincipal(); + + ReagentConsumableInventory reagentConsumableInventory = reagentConsumableInventoryService.getById(reagentConsumableInventoryId); + return R.ok(reagentConsumableInventory); + //return R.ok(reagentConsumableInventoryService.getById(reagentConsumableInventoryId)); + } + + /** * @param * @return