From 8d3ff63ab144ad6b48015b01196bc901944a48f9 Mon Sep 17 00:00:00 2001
From: Jay <csj123456>
Date: 星期一, 16 十二月 2024 10:51:41 +0800
Subject: [PATCH] 煤质部分后端代码

---
 iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java
index d1d18f3..ff2240e 100644
--- a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java
+++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java
@@ -3,7 +3,6 @@
 
 import com.iailab.framework.common.pojo.CommonResult;
 import com.iailab.framework.common.pojo.PageResult;
-import com.iailab.iems.common.validator.AssertUtils;
 import com.iailab.module.pms.coalquality.modules.detection.dto.QualityQuickDTO;
 import com.iailab.module.pms.coalquality.modules.detection.service.QualityQuickService;
 import com.iailab.module.pms.coalquality.modules.detection.vo.QuickPageReqVO;
@@ -22,7 +21,7 @@
  */
 @Slf4j
 @RestController
-@RequestMapping("/xmcpms/quality/quick")
+@RequestMapping("/coal-quality/quality/quick")
 @Tag(name = "生产快检")
 public class QualityQuickController {
     @Autowired
@@ -36,14 +35,14 @@
         return success(page);
     }
 
-    @GetMapping("{id}")
+    @GetMapping("/get")
     @Operation(summary = "信息")
-    public CommonResult<QualityQuickDTO> get(@PathVariable("id") String id){
+    public CommonResult<QualityQuickDTO> get(String id){
         QualityQuickDTO data = qualityQuickService.get(id);
         return success(data);
     }
 
-    @PostMapping
+    @PostMapping("/create")
     @Operation(summary = "保存")
     public CommonResult<Boolean> save(@RequestBody QualityQuickDTO dto){
 
@@ -52,7 +51,7 @@
         return success(true);
     }
 
-    @PutMapping
+    @PutMapping("/update")
     @Operation(summary = "修改")
     public CommonResult<Boolean> update(@RequestBody QualityQuickDTO dto){
 
@@ -61,11 +60,9 @@
         return success(true);
     }
 
-    @DeleteMapping
+    @DeleteMapping("/delete")
     @Operation(summary = "删除")
     public CommonResult<Boolean> delete(@RequestBody String[] ids){
-        //效验数据
-        AssertUtils.isArrayEmpty(ids, "id");
 
         qualityQuickService.delete(ids);
 

--
Gitblit v1.9.3