gongchunyi
2026-06-28 86379aae223a16fed59d46f915ade96ef987b8d2
src/main/java/com/ruoyi/measuringinstrumentledger/controller/SparePartsController.java
@@ -58,4 +58,10 @@
        return AjaxResult.success(sparePartsService.removeById(id));
    }
    @GetMapping("/listByDevice/{deviceLedgerId}")
    @ApiOperation("备件分类-按设备查询")
    public AjaxResult listByDevice(@PathVariable Long deviceLedgerId) {
        return AjaxResult.success(sparePartsService.listByDeviceLedgerId(deviceLedgerId));
    }
}