From 208bb2f289ce8a7b59f587a9f57e24c0fc8a0ba6 Mon Sep 17 00:00:00 2001
From: XiaoRuby <3114200645@qq.com>
Date: 星期日, 24 九月 2023 21:48:40 +0800
Subject: [PATCH] MOM系统-9-24 加班

---
 base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java |   37 +++++++++++++++++--------------------
 1 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java b/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java
index 044cc10..d10ec7e 100644
--- a/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java
+++ b/base-server/src/main/java/com/yuanchu/mom/controller/TechnicalModelController.java
@@ -31,11 +31,11 @@
 
     @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) {
+    public Result selectAllTechTem(String type, String message) {
         return Result.success(technicalModelService.selectAllTechTem(type, message));
     }
 
@@ -50,35 +50,32 @@
 
     @ApiOperation(value = "鏂板鎶�鏈寚鏍囩淮鎶�-->閫夋嫨宸ュ簭鍜屽伐鑹�")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "type", value = "绫诲瀷", dataTypeClass = Integer.class, required = true)
+            @ApiImplicitParam(name = "type", value = "绫诲瀷", dataTypeClass = String.class, required = true)
     })
     @GetMapping("/chooseTechFath")
-    public Result chooseTechFath(Integer type) {
+    public Result chooseTechFath(String type) {
         return Result.success(technicalModelService.chooseTechFath(type));
     }
 
     @ApiOperation(value = "鏂板鎶�鏈寚鏍囩淮鎶�-->閫夋嫨椤圭洰鐖剁被")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
+            @ApiImplicitParam(name = "techTemId", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
     })
     @GetMapping("/chooseProFath")
-    public Result chooseProFath(Integer id) {
-        return Result.success(technicalModelService.chooseProFath(id));
+    public Result chooseProFath(Integer techTemId) {
+        return Result.success(technicalModelService.chooseProFath(techTemId));
     }
 
     @ApiOperation(value = "鏂板鎶�鏈寚鏍囩淮鎶�")
-    @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "宸ヨ壓璺嚎id", dataTypeClass = Integer.class, required = true)
-    })
     @PostMapping("/addTechMode")
-    public Result addTechMode(Integer id, @Validated @RequestBody TechnicalModelDto technicalModelDto) {
-        technicalModelService.addTechMode(id, technicalModelDto);
+    public Result addTechMode(@Validated @RequestBody TechnicalModelDto technicalModelDto) {
+        technicalModelService.addTechMode(technicalModelDto);
         return Result.success("鏂板鎴愬姛!");
     }
 
     @ApiOperation(value = "鏍规嵁id鏌ヨ璇︽儏")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class,required = true)
+            @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class, required = true)
     })
     @GetMapping("/selecTechById")
     public Result selecTechById(Integer id) {
@@ -87,27 +84,27 @@
 
     @ApiOperation(value = "缂栬緫")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class,required = true)
+            @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class, required = true)
     })
     @PostMapping("/writeTechById")
-    public Result writeTechById(Integer id,@Validated @RequestBody TechnicalModelDto technicalModelDto) {
-        technicalModelService.writeTechById(id,technicalModelDto);
-        return Result.success("淇敼"+id+"鎴愬姛!");
+    public Result writeTechById(Integer id, @Validated @RequestBody TechnicalModelDto technicalModelDto) {
+        technicalModelService.writeTechById(id, technicalModelDto);
+        return Result.success("淇敼" + id + "鎴愬姛!");
     }
 
     @ApiOperation(value = "鍒犻櫎")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class,required = true)
+            @ApiImplicitParam(name = "id", value = "鎶�鏈寚鏍噄d", dataTypeClass = Integer.class, required = true)
     })
     @PostMapping("/delTechById")
     public Result delTechById(Integer id) {
         technicalModelService.delTechById(id);
-        return Result.success("鍒犻櫎"+id+"鎴愬姛!");
+        return Result.success("鍒犻櫎" + id + "鎴愬姛!");
     }
 
     @ApiOperation(value = "鎵归噺鍒犻櫎")
     @ApiImplicitParams(value = {
-            @ApiImplicitParam(name = "ids", value = "鎶�鏈寚鏍噄d", dataTypeClass = String.class,required = true)
+            @ApiImplicitParam(name = "ids", value = "鎶�鏈寚鏍噄d", dataTypeClass = String.class, required = true)
     })
     @PostMapping("/delAllTech")
     public Result delAllTech(String ids) {

--
Gitblit v1.9.3