From 160e150009b51a39fa95d9462c3798ba28d51a09 Mon Sep 17 00:00:00 2001
From: lxw <810412026@qq.com>
Date: 星期二, 15 八月 2023 08:49:47 +0800
Subject: [PATCH] 审批页面修改

---
 src/main/java/com/whyc/controller/DevParamController.java |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/whyc/controller/DevParamController.java b/src/main/java/com/whyc/controller/DevParamController.java
index c645b84..4c1bea1 100644
--- a/src/main/java/com/whyc/controller/DevParamController.java
+++ b/src/main/java/com/whyc/controller/DevParamController.java
@@ -6,26 +6,31 @@
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
 import org.springframework.web.bind.annotation.*;
 
 
 @RestController
-@Api(tags = "鐢垫睜鍛婅鍙傛暟璁剧疆")
+@Api(tags = "鍛婅绠$悊-鐢垫睜鍛婅鍙傛暟璁剧疆")
 @RequestMapping("Dev_paramAction")
 public class DevParamController {
     @Autowired
     private DevParamService service;
 
     @ApiOperation("鐢垫睜鍛婅鍙傛暟璁剧疆--鍒楄〃鏌ヨ")
-    @GetMapping("/serchByCondition")
-    private Response serchByCondition(@RequestParam int devId,@RequestParam int almId){
+    @GetMapping("serchByCondition")
+    public Response serchByCondition(@RequestParam int devId,@RequestParam int almId){
         return service.serchByCondition(devId,almId);
     }
 
-    @ApiOperation(value = "鐢垫睜鍛婅鍙傛暟璁剧疆--鍒楄〃淇敼",notes="almHighCoe,almHighEn,almHighLevel,almId,almLowCoe,almLowEn,almLowLevel,devId")
-    @PostMapping("/update")
-    private Response update(@RequestBody DevParam devParam){
+    @ApiOperation(value = "鐢垫睜鍛婅鍙傛暟璁剧疆--鍒楄〃淇敼", notes = "almHighCoe,almHighEn,almHighLevel,almId,almLowCoe,almLowEn,almLowLevel,devId,almHighCoeUpper,alm_low_coe_lower,almHighCoeUpperEn,almLowCoeLowerEn,almDelayTime")
+    @PostMapping("update")
+    public Response update(@RequestBody DevParam devParam){
         return service.update(devParam);
     }
+
+    @ApiOperation(value = "鍦ㄧ嚎鐩戞祴-瀹炴椂鐩戞帶-鏌ヨ鍛婅")
+    @GetMapping("serchParamById")
+    public Response serchParamById(@RequestParam int devId){
+        return service.serchParamById(devId);
+    }
 }

--
Gitblit v1.9.1