恢复getById()
This commit is contained in:
+19
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user