From e029c61aa09bf1ae1af7b07fa4e78d87442c44f1 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期三, 19 六月 2024 00:50:09 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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