From a3b6c33ffef0db2d67102edf2b56c78a1d2e551d Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期五, 21 六月 2024 15:29:18 +0800
Subject: [PATCH] 检验任务分页查询检验对象改成样品名称

---
 inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java |   36 +++++++++++++++++++++++++++++++-----
 1 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java b/inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java
index c629729..b1cf762 100644
--- a/inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java
+++ b/inspect-server/src/main/java/com/yuanchu/mom/controller/StandardTreeController.java
@@ -14,6 +14,7 @@
 import io.swagger.annotations.*;
 import lombok.AllArgsConstructor;
 import org.springframework.web.bind.annotation.*;
+import org.springframework.web.multipart.MultipartFile;
 
 import java.util.Map;
 
@@ -59,7 +60,8 @@
     @ValueClassify("鏍囧噯搴�")
     @ApiOperation(value = "淇敼鏍囧噯搴撲腑鐨勫唴瀹�")
     @PostMapping("/upStandardProductList")
-    public Result upStandardProductList(@RequestBody StandardProductList list){
+    public Result upStandardProductList(String str){
+        StandardProductList list = JSON.parseObject(str, StandardProductList.class);
         return Result.success(standardProductListService.upStandardProductList(list));
     }
     @ValueAuth
@@ -146,9 +148,33 @@
     }
 
     @ValueAuth
-    @GetMapping("/getStandTreeBySampleType")
-    @ApiModelProperty("浠呰幏鍙栧厜绾ょ殑鍨嬪彿")
-    public Result<?> getStandTreeBySampleType(){
-        return Result.success(standardTreeService.getStandTreeBySampleType());
+    @PostMapping("/getStandTreeBySampleType")
+    @ApiOperation("浠呰幏鍙栧厜绾ょ殑鍨嬪彿")
+    public Result<?> getStandTreeBySampleType(String laboratory, String sampleType){
+        return Result.success(standardTreeService.getStandTreeBySampleType(laboratory, sampleType));
+    }
+
+    @ValueClassify("鏍囧噯搴�")
+    @ApiOperation("瀵煎叆鏍囧噯搴�")
+    @PostMapping("/inExcelOfTree")
+    public Result inExcelOfTree(@RequestParam("file") MultipartFile file){
+        standardTreeService.inExcelOfTree(file);
+        return Result.success();
+    }
+
+    @ValueAuth
+    @ApiOperation("閲嶇疆鏍囧噯搴撳崟浠�")
+    @PostMapping("/resetTreeOfPrice")
+    public Result resetTreeOfPrice(String tree, Integer standardId){
+        standardTreeService.resetTreeOfPrice(tree, standardId);
+        return Result.success();
+    }
+
+    @ValueAuth
+    @ApiOperation("閲嶇疆鏍囧噯搴撳伐鏃剁郴鏁�")
+    @PostMapping("/resetTreeOfHour")
+    public Result resetTreeOfHour(String tree, Integer standardId){
+        standardTreeService.resetTreeOfHour(tree, standardId);
+        return Result.success();
     }
 }

--
Gitblit v1.9.3