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/analysis/controller/admin/CoalAnalysisFullController.java |   80 ++++++++++++++++++++++++++++++++++++++++
 1 files changed, 80 insertions(+), 0 deletions(-)

diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/analysis/controller/admin/CoalAnalysisFullController.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/analysis/controller/admin/CoalAnalysisFullController.java
new file mode 100644
index 0000000..c3b3b6e
--- /dev/null
+++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/analysis/controller/admin/CoalAnalysisFullController.java
@@ -0,0 +1,80 @@
+package com.iailab.module.pms.coalquality.modules.analysis.controller.admin;
+
+
+import com.iailab.framework.common.annotation.AutoDict;
+import com.iailab.framework.common.pojo.CommonResult;
+import com.iailab.framework.common.pojo.PageResult;
+import com.iailab.module.pms.coalquality.modules.analysis.dto.CoalAnalysisFullDTO;
+import com.iailab.module.pms.coalquality.modules.analysis.service.CoalAnalysisFullService;
+import com.iailab.module.pms.coalquality.modules.analysis.vo.FullPageReqVO;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import static com.iailab.framework.common.pojo.CommonResult.success;
+
+/**
+ * @author PanZhibao
+ * @Description
+ * @createTime 2023年01月12日 22:22:00
+ */
+@RestController
+@RequestMapping("/coal-quality/analysis/full")
+@Tag(name ="全级浮沉实验台账")
+public class CoalAnalysisFullController {
+
+    @Autowired
+    private CoalAnalysisFullService coalAnalysisFullService;
+
+    @GetMapping("/page")
+    @Operation(summary = "获取浮沉实验台账列表", description = "用于浮沉实验台账界面")
+//    @PreAuthorize("@ss.hasPermission('data:ind-item:query')")
+    public CommonResult<PageResult<CoalAnalysisFullDTO>> page(FullPageReqVO fullPageReqVO){
+
+        PageResult<CoalAnalysisFullDTO> page = coalAnalysisFullService.page(fullPageReqVO);
+
+        return success(page);
+    }
+
+    @GetMapping("/get")
+    @Operation(summary = "信息")
+    @AutoDict
+    public CommonResult<CoalAnalysisFullDTO> get(String id){
+        CoalAnalysisFullDTO data = coalAnalysisFullService.get(id);
+        return success(data);
+    }
+
+    @PostMapping("/create")
+    @Operation(summary = "保存")
+    public CommonResult<Boolean> save(@RequestBody CoalAnalysisFullDTO dto){
+
+        coalAnalysisFullService.save(dto);
+
+        return success(true);
+    }
+
+    @PutMapping("/update")
+    @Operation(summary = "修改")
+    public CommonResult<Boolean> update(@RequestBody CoalAnalysisFullDTO dto){
+        //效验数据
+//        ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
+//
+//        if (coalAnalysisFullService.cheack(dto) > 0) {
+//            return new Result().error("编号重复");
+//        }
+
+        coalAnalysisFullService.update(dto);
+
+        return success(true);
+    }
+
+    @DeleteMapping("/delete")
+    @Operation(summary = "删除")
+    public  CommonResult<Boolean> delete(@RequestBody String[] ids){
+
+        coalAnalysisFullService.delete(ids);
+
+        return success(true);
+    }
+}

--
Gitblit v1.9.3