From 2dbc49184bd74845c8da694c20d6fd03d7ac87e0 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 21 九月 2023 16:16:21 +0800
Subject: [PATCH] 修改   9.21

---
 base-server/src/main/java/com/yuanchu/mom/controller/TechnologyTemplateController.java |   46 ++++++++++++++++++++++++----------------------
 1 files changed, 24 insertions(+), 22 deletions(-)

diff --git a/base-server/src/main/java/com/yuanchu/mom/controller/TechnologyTemplateController.java b/base-server/src/main/java/com/yuanchu/mom/controller/TechnologyTemplateController.java
index 9c14bd9..fe10f0f 100644
--- a/base-server/src/main/java/com/yuanchu/mom/controller/TechnologyTemplateController.java
+++ b/base-server/src/main/java/com/yuanchu/mom/controller/TechnologyTemplateController.java
@@ -36,45 +36,47 @@
     @Autowired
     private TechnologyTemplateService technologyTemplateService;
 
+    @ApiOperation(value = "鏂板宸ヨ壓璺嚎缁存姢-->閫夋嫨绫诲瀷")
+    @GetMapping("/chooseType")
+    public Result chooseType() {
+        return Result.success(technologyTemplateService.chooseType());
+    }
 
-    @ApiOperation(value = "鏂板宸ヨ壓璺嚎缁存姢-->閫夋嫨璁惧缁�")
+    @ApiOperation(value = "鏂板宸ヨ壓璺嚎缁存姢-->閫夋嫨鐢熶骇璁惧缁�")
     @GetMapping("/chooseDevGroup")
     public Result chooseDevGroup() {
         return Result.success(technologyTemplateService.chooseDevGroup());
     }
 
     @ApiOperation(value = "鏂板宸ヨ壓璺嚎缁存姢-->閫夋嫨宸ュ簭")
+    @ApiImplicitParams(value = {
+            @ApiImplicitParam(name = "type", value = "绫诲瀷(涓虹┖=绗竴涓�)", dataTypeClass = String.class, required = true)
+    })
     @GetMapping("/chooseTech")
-    public Result chooseTech() {
-        return Result.success(technologyTemplateService.chooseTech());
+    public Result chooseTech(String type) {
+        return Result.success(technologyTemplateService.chooseTech(type));
     }
 
-    @ApiOperation(value = "鏂板宸ヨ壓璺嚎缁存姢-->閫夋嫨鍏冧欢")
-    @GetMapping("/chooseElement")
-    public Result chooseElement() {
-        return Result.success(technologyTemplateService.chooseElement());
-    }
 
     @ApiOperation(value = "鏂板宸ヨ壓璺嚎缁存姢")
     @PostMapping("/addTechTemp")
     public Result addTechTemp(@Validated @RequestBody TechnologyTemplateDto technologyTemplateDto) {
-        technologyTemplateService.addTechTemp(technologyTemplateDto);
-        return Result.success("鏂板鎴愬姛!");
+        return Result.success(technologyTemplateService.addTechTemp(technologyTemplateDto));
     }
 
     @ApiOperation(value = "鏌ヨ宸ヨ壓璺嚎鍒楄〃-->宸﹁竟浜岀骇灞曠ず")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "type", value = "绫诲瀷(涓虹┖=0姗¤兌杩炴帴鍣�)", dataTypeClass = Integer.class,required = true),
+            @ApiImplicitParam(name = "type", value = "绫诲瀷(涓虹┖=0姗¤兌杩炴帴鍣�)", dataTypeClass = String.class, required = true),
             @ApiImplicitParam(name = "message", value = "鎼滅储鍐呭", dataTypeClass = String.class)
     })
     @GetMapping("/selectAllTechTem")
-    public Result selectAllTechTem(Integer type,String message) {
-        return Result.success(technologyTemplateService.selectAllTechTem(type,message));
+    public Result selectAllTechTem(String type, String message) {
+        return Result.success(technologyTemplateService.selectAllTechTem(type, message));
     }
 
     @ApiOperation(value = "鏌ヨ宸ヨ壓璺嚎鍒楄〃-->鍙宠竟灞曠ず宸ヨ壓鍜岃澶�")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "father", value = "宸ュ簭(鐖剁被)", dataTypeClass = String.class,required = true)
+            @ApiImplicitParam(name = "father", value = "宸ュ簭(鐖剁被)", dataTypeClass = String.class, required = true)
     })
     @GetMapping("/selectAllTechNam")
     public Result selectAllTechNam(String father) {
@@ -83,7 +85,7 @@
 
     @ApiOperation(value = "鏍规嵁id鏌ヨ璇︽儏")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class,required = true)
+            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
     })
     @GetMapping("/selecTechById")
     public Result selecTechById(Integer id) {
@@ -92,27 +94,27 @@
 
     @ApiOperation(value = "缂栬緫")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class,required = true)
+            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
     })
     @PostMapping("/writeTechById")
-    public Result writeTechById(Integer id,@Validated @RequestBody TechnologyTemplateDto technologyTemplateDto) {
-        technologyTemplateService.writeTechById(id,technologyTemplateDto);
-        return Result.success("淇敼"+id+"鎴愬姛!");
+    public Result writeTechById(Integer id, @Validated @RequestBody TechnologyTemplateDto technologyTemplateDto) {
+        technologyTemplateService.writeTechById(id, technologyTemplateDto);
+        return Result.success("淇敼" + id + "鎴愬姛!");
     }
 
     @ApiOperation(value = "鍒犻櫎")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class,required = true)
+            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
     })
     @PostMapping("/delTechById")
     public Result delTechById(Integer id) {
         technologyTemplateService.delTechById(id);
-        return Result.success("鍒犻櫎"+id+"鎴愬姛!");
+        return Result.success("鍒犻櫎" + id + "鎴愬姛!");
     }
 
     @ApiOperation(value = "鎵归噺鍒犻櫎")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "ids", value = "宸ヨ壓璺嚎id", dataTypeClass = String.class,required = true)
+            @ApiImplicitParam(name = "ids", value = "宸ヨ壓璺嚎id", dataTypeClass = String.class, required = true)
     })
     @PostMapping("/delAllTech")
     public Result delAllTech(String ids) {

--
Gitblit v1.9.3