From 82fbcce60ae86965441ae045df1f864d10005d35 Mon Sep 17 00:00:00 2001 From: zss <zss@example.com> Date: 星期一, 21 八月 2023 17:59:46 +0800 Subject: [PATCH] 检验计划 --- inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java | 16 ++++++---------- 1 files changed, 6 insertions(+), 10 deletions(-) diff --git a/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java b/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java index ff18b98..bd72e5d 100644 --- a/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java +++ b/inspection-server/src/main/java/com/yuanchu/limslaboratory/controller/InspectionController.java @@ -90,7 +90,7 @@ return Result.success(inspectionService.addInspect((Integer) unmarshal.get("id"), inspectionVo)); } - @ApiOperation(value = "鏍规嵁妫�楠屽崟id鏌ヨ鍘熸潗鏂欐楠屽崟璇︽儏") + @ApiOperation(value = "鏍规嵁妫�楠屽崟id鏌ヨ妫�楠屽崟璇︽儏") @ApiImplicitParams(value = { @ApiImplicitParam(name = "id", value = "妫�楠屽崟id", dataTypeClass = Integer.class, required = true) }) @@ -99,19 +99,15 @@ return Result.success(inspectionService.selectInspectsListById(id)); } - @ApiOperation(value = "涓婃姤(鏇存柊妫�楠岀姸鎬�)") + @ApiOperation(value = "浣滃簾妫�楠屽崟") @ApiImplicitParams(value = { @ApiImplicitParam(name = "id", value = "妫�楠屽崟id", dataTypeClass = Integer.class, required = true) }) - @PostMapping("/updateInspectsById") - public Result updateInspectsById(Integer id) { - //濡傛灉宸茬粡涓婃姤浜嗕笉鑳藉啀涓�娆′笂鎶� - Inspection inspection = inspectionService.getById(id); - if (ObjectUtils.isNotEmpty(inspection.getInspectionStatus())) { - return Result.fail("宸茬粡涓婃姤杩囦簡,涓嶈兘鍐嶆涓婃姤!"); - } - return Result.success(inspectionService.updateInspectsById(id)); + @PostMapping("/delInspect") + public Result delInspect(Integer id) { + return Result.success(inspectionService.delInspect(id)); } + } -- Gitblit v1.9.3