From fbdbdedf6112fde484b6c96e92b47ccc2f051d2b Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 26 三月 2026 11:53:52 +0800
Subject: [PATCH] 判断数据是否存在
---
src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java b/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java
index 57348e6..9372744 100644
--- a/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java
+++ b/src/main/java/com/ruoyi/production/controller/ProductionProductMainController.java
@@ -59,4 +59,11 @@
ExcelUtil<ProductionProductMainDto> util = new ExcelUtil<ProductionProductMainDto>(ProductionProductMainDto.class);
util.exportExcel(response, list, "鐢熶骇鎶ュ伐鏁版嵁");
}
+
+ @ApiOperation("鏍规嵁宸ュ崟id鏌ヨ鎶ュ伐鏁版嵁")
+ @GetMapping("/getByProductWorkOrderId/{productWorkOrderId}")
+ public R getByProductWorkOrderId(@PathVariable Long productWorkOrderId) {
+ return R.ok(productionProductMainService.getByProductWorkOrderId(productWorkOrderId));
+ }
+
}
--
Gitblit v1.9.3