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 |   14 +++++---------
 1 files changed, 5 insertions(+), 9 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 fd379d3..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
@@ -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