From 22899f74279a47f4ec79e1325f8489d948ced005 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 15 九月 2023 17:24:44 +0800
Subject: [PATCH] 修改2.0   9.15

---
 standard-server/src/main/java/com/yuanchu/mom/controller/TechnologyController.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/standard-server/src/main/java/com/yuanchu/mom/controller/TechnologyController.java b/standard-server/src/main/java/com/yuanchu/mom/controller/TechnologyController.java
index 9ac1511..4a94d01 100644
--- a/standard-server/src/main/java/com/yuanchu/mom/controller/TechnologyController.java
+++ b/standard-server/src/main/java/com/yuanchu/mom/controller/TechnologyController.java
@@ -37,18 +37,18 @@
 
     @ApiOperation("鍙充笂瑙掓柊澧�-->宸ヨ壓璺嚎-->閫夋嫨宸ュ簭")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "specificationsId", value = "鍨嬪彿id", dataTypeClass = Integer.class, required = true)
+            @ApiImplicitParam(name = "specificationsId", value = "鍨嬪彿id", dataTypeClass = Integer.class, required = true),
+            @ApiImplicitParam(name = "version", value = "鐗堟湰", dataTypeClass = Integer.class, required = true)
     })
     @GetMapping("/chooseFather")
-    public Result<?> chooseFather(Integer specificationsId) {
-        return Result.success(technologyService.chooseFather(specificationsId));
+    public Result<?> chooseFather(Integer specificationsId,Integer version) {
+        return Result.success(technologyService.chooseFather(specificationsId,version));
     }
 
     @ApiOperation("鍙充笂瑙掓柊澧�-->宸ヨ壓璺嚎")
     @PostMapping("/add")
     public Result<?> addTechnology(@Validated @RequestBody TechnologyDto technologyDto) {
-        technologyService.addTechnology(technologyDto);
-        return Result.success("娣诲姞宸ヨ壓銆�" + technologyDto.getName() + "銆戞垚鍔�");
+        return Result.success(technologyService.addTechnology(technologyDto));
     }
 
     @ApiOperation("濉啓鐢熶骇瀹氶,榧犳爣绉诲紑淇濆瓨")

--
Gitblit v1.9.3