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/CoalWashCurvesController.java |   91 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 91 insertions(+), 0 deletions(-)

diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/analysis/controller/admin/CoalWashCurvesController.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/analysis/controller/admin/CoalWashCurvesController.java
new file mode 100644
index 0000000..3088526
--- /dev/null
+++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/analysis/controller/admin/CoalWashCurvesController.java
@@ -0,0 +1,91 @@
+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.CoalWashCurvesDTO;
+import com.iailab.module.pms.coalquality.modules.analysis.service.CoalWashCurvesService;
+import com.iailab.module.pms.coalquality.modules.analysis.vo.WashCurvesPageReqVO;
+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 java.util.Map;
+
+import static com.iailab.framework.common.pojo.CommonResult.success;
+
+/**
+ * @author PanZhibao
+ * @Description
+ * @createTime 2023年01月16日 16:25:00
+ */
+@RestController
+@RequestMapping("/coal-quality/analysis/wash-curves")
+@Tag(name="可选性曲线台账")
+public class CoalWashCurvesController {
+
+    @Autowired
+    private CoalWashCurvesService coalWashCurvesService;
+
+    @GetMapping("/page")
+    @AutoDict
+    public CommonResult<PageResult<CoalWashCurvesDTO>> page(WashCurvesPageReqVO washCurvesPageReqVO){
+        PageResult<CoalWashCurvesDTO> page = coalWashCurvesService.page(washCurvesPageReqVO);
+
+        return success(page);
+    }
+
+    @GetMapping("/info")
+    @Operation(summary ="信息")
+    @AutoDict
+    public CommonResult<CoalWashCurvesDTO> getByMzAndRq(@RequestParam Map<String, Object> params){
+        String mz = (String)params.get("mz");
+        String syrq = (String)params.get("syrq");
+        CoalWashCurvesDTO data = coalWashCurvesService.getByMzAndRq(mz,syrq);
+        return success(data);
+    }
+
+    @GetMapping("/last")
+    @Operation(summary ="信息")
+    @AutoDict
+    public CommonResult<Boolean> last(@RequestParam Map<String, Object> params){
+        String mz = (String)params.get("mz");
+        CoalWashCurvesDTO data = coalWashCurvesService.getLastByMz(mz);
+        return success(true);
+    }
+
+    @GetMapping("/get")
+    @Operation(summary ="信息")
+    @AutoDict
+    public CommonResult<CoalWashCurvesDTO> get(String id){
+        CoalWashCurvesDTO data = coalWashCurvesService.get(id);
+        return success(data);
+    }
+
+    @PostMapping("/create")
+    @Operation(summary = "保存")
+    public CommonResult<Boolean> create(@RequestBody CoalWashCurvesDTO dto){
+        coalWashCurvesService.save(dto);
+
+        return success(true);
+    }
+
+    @PutMapping("/update")
+    @Operation(summary ="修改")
+    public CommonResult<Boolean> update(@RequestBody CoalWashCurvesDTO dto){
+        coalWashCurvesService.update(dto);
+
+        return success(true);
+    }
+
+    @DeleteMapping("/delete")
+    @Operation(summary = "删除")
+    public CommonResult<Boolean> delete(@RequestBody String[] ids){
+        coalWashCurvesService.delete(ids);
+
+        return  success(true);
+    }
+
+}

--
Gitblit v1.9.3