From ed81b7371e376df35448b81531d30dd9024bd44a Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期一, 09 九月 2024 11:21:56 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java
index ac0803e..57fd8c4 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mcs/pre/controller/admin/MmResultTableController.java
@@ -35,7 +35,7 @@
         return success(BeanUtils.toBean(page, MmItemTypeRespVO.class));
     }
 
-    @GetMapping("/info/{id}")
+    @GetMapping("/get/{id}")
     public CommonResult<MmResultTableEntity> info(@PathVariable("id") String id){
         MmResultTableEntity resultTable = mmResultTableService.selectById(id);
 
@@ -45,7 +45,7 @@
     /**
      * 保存结果存放
      */
-    @PostMapping
+    @PostMapping("/create")
     public CommonResult<Boolean> save(@RequestBody MmResultTableEntity resultTable){
         int count = mmResultTableService.check(resultTable);
         if (count > 0) {
@@ -58,7 +58,7 @@
     /**
      * 修改结果存放
      */
-    @PutMapping
+    @PutMapping("/update")
     public CommonResult<Boolean> update(@RequestBody MmResultTableEntity resultTable){
         int count = mmResultTableService.check(resultTable);
         if (count > 0) {
@@ -71,9 +71,9 @@
     /**
      * 删除结果存放
      */
-    @DeleteMapping("{id}")
-    public CommonResult<Boolean> delete(@RequestBody String[] ids){
-        mmResultTableService.deleteBatch(ids);
+    @DeleteMapping("/delete")
+    public CommonResult<Boolean> delete(@RequestParam("id") String id) {
+        mmResultTableService.deleteBatch(new String[]{id});
         return success(true);
     }
 }

--
Gitblit v1.9.3