恢复getById()

main
张孝龙 2 years ago
parent c83fe88bd5
commit d4651461e0
  1. 19
      src/main/java/digital/laboratory/platform/reagent/controller/ReagentConsumableInventoryController.java

@ -60,6 +60,25 @@ public class ReagentConsumableInventoryController {
private final OssFile ossFile; 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<ReagentConsumableInventory> 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 * @param
* @return * @return

Loading…
Cancel
Save