| | |
| | | MdcEquipment mdcEquipment = mdcEquipmentService.getEquipmentByPid(pid, userId); |
| | | return Result.OK(mdcEquipment); |
| | | } |
| | | |
| | | /** |
| | | * 根据部门层级查询单个设备 |
| | | * |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "设备表-根据部门层级查询单个设备") |
| | | @ApiOperation(value = "设备表-根据部门层级查询单个设备", notes = "设备表-根据部门层级查询单个设备") |
| | | @GetMapping("/getEquipmentByDepPid") |
| | | public Result<MdcEquipment> getEquipmentByDepPid(@RequestParam(name = "pid", required = false) String pid) { |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | MdcEquipment mdcEquipment = mdcEquipmentService.getEquipmentByDepPid(pid, userId); |
| | | return Result.OK(mdcEquipment); |
| | | } |
| | | } |