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