From 3f07ab2e03e501ae55d1d1b0d031daf50c8e13e5 Mon Sep 17 00:00:00 2001
From: dongyukun <1208714201@qq.com>
Date: 星期二, 10 十二月 2024 17:27:44 +0800
Subject: [PATCH] common依赖排除父类

---
 iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java |   74 +++++++++++++++++++++++++++++++++++++
 1 files changed, 74 insertions(+), 0 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
new file mode 100644
index 0000000..0a4ab0a
--- /dev/null
+++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/detection/controller/admin/QualityQuickController.java
@@ -0,0 +1,74 @@
+package com.iailab.module.pms.coalquality.modules.detection.controller.admin;
+
+
+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;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import static com.iailab.framework.common.pojo.CommonResult.success;
+
+/**
+ * @author DongYukun
+ * @Description
+ * @createTime 2023年12月27日 9:53:00
+ */
+@Slf4j
+@RestController
+@RequestMapping("/quality/quick")
+@Tag(name = "生产快检")
+public class QualityQuickController {
+    @Autowired
+    private QualityQuickService qualityQuickService;
+
+    @GetMapping("page")
+    @Operation(summary = "分页")
+    public CommonResult<PageResult<QualityQuickDTO>> page(QuickPageReqVO quickPageReqVO){
+        PageResult<QualityQuickDTO> page = qualityQuickService.page(quickPageReqVO);
+
+        return success(page);
+    }
+
+    @GetMapping("{id}")
+    @Operation(summary = "信息")
+    public CommonResult<QualityQuickDTO> get(@PathVariable("id") String id){
+        QualityQuickDTO data = qualityQuickService.get(id);
+        return success(data);
+    }
+
+    @PostMapping
+    @Operation(summary = "保存")
+    public CommonResult<Boolean> save(@RequestBody QualityQuickDTO dto){
+
+        qualityQuickService.save(dto);
+
+        return success(true);
+    }
+
+    @PutMapping
+    @Operation(summary = "修改")
+    public CommonResult<Boolean> update(@RequestBody QualityQuickDTO dto){
+
+        qualityQuickService.update(dto);
+
+        return success(true);
+    }
+
+    @DeleteMapping
+    @Operation(summary = "删除")
+    public CommonResult<Boolean> delete(@RequestBody String[] ids){
+        //效验数据
+        AssertUtils.isArrayEmpty(ids, "id");
+
+        qualityQuickService.delete(ids);
+
+        return success(true);
+    }
+}

--
Gitblit v1.9.3