From 98c94b182ebbd0b17c82926a90cd042f37760e65 Mon Sep 17 00:00:00 2001
From: heheng <heheng@123456>
Date: 星期五, 17 一月 2025 08:39:38 +0800
Subject: [PATCH] 特种作业缴费版本

---
 exam-system/src/main/java/com/gkhy/exam/pay/controller/NonCoalPayController.java |   39 +++++++++++++++++++++++++--------------
 1 files changed, 25 insertions(+), 14 deletions(-)

diff --git a/exam-system/src/main/java/com/gkhy/exam/pay/controller/NonCoalPayController.java b/exam-system/src/main/java/com/gkhy/exam/pay/controller/NonCoalPayController.java
index 4073215..53d99cb 100644
--- a/exam-system/src/main/java/com/gkhy/exam/pay/controller/NonCoalPayController.java
+++ b/exam-system/src/main/java/com/gkhy/exam/pay/controller/NonCoalPayController.java
@@ -1,32 +1,39 @@
 package com.gkhy.exam.pay.controller;
 
+import com.gkhy.exam.pay.dto.req.NonCoalPayReqDto;
 import com.gkhy.exam.pay.entity.NonCoalPay;
 import com.gkhy.exam.pay.service.NonCoalPayService;
 import com.ruoyi.common.core.controller.BaseController;
 import com.ruoyi.common.core.domain.AjaxResult;
 import com.ruoyi.common.core.page.TableDataInfo;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
 
 /**
- * 【请填写功能名称】Controller
+ * 非煤缴费管理Controller
  *
  * @author hh
  * @date 2025-01-16
  */
 @RestController
-@RequestMapping("/exam/pay")
+@Api(tags = "非煤缴费管理")
+@RequestMapping("/pay/nonCoalPay")
 public class NonCoalPayController extends BaseController {
     @Autowired
     private NonCoalPayService nonCoalPayService;
 
     /**
-     * 查询【请填写功能名称】列表
+     * 查询非煤缴费管理列表
      */
     @GetMapping("/list")
+    @ApiOperation(value = "查询非煤缴费管理列表")
     public TableDataInfo list(NonCoalPay nonCoalPay) {
         startPage();
         List<NonCoalPay> list = nonCoalPayService.selectNonCoalPayList(nonCoalPay);
@@ -34,47 +41,51 @@
     }
 
     /**
-     * 导出【请填写功能名称】列表
+     * 导出非煤缴费管理列表
      */
 
 //    @PostMapping("/export")
 //    public void export(HttpServletResponse response, NonCoalPay nonCoalPay) {
 //        List<NonCoalPay> list = nonCoalPayService.selectNonCoalPayList(nonCoalPay);
 //        ExcelUtil<NonCoalPay> util = new ExcelUtil<NonCoalPay>(NonCoalPay.class);
-//        util.exportExcel(response, list, "【请填写功能名称】数据");
+//        util.exportExcel(response, list, "非煤缴费管理数据");
 //    }
 
     /**
-     * 获取【请填写功能名称】详细信息
+     * 获取非煤缴费管理详细信息
      */
 
     @GetMapping(value = "/{id}")
+    @ApiOperation(value = "获取非煤缴费管理详细信息", httpMethod = "GET")
+    @ApiImplicitParam(name = "id", dataTypeClass = Long.class, value = "id", required = true)
     public AjaxResult getInfo(@PathVariable("id") Long id) {
         return success(nonCoalPayService.selectNonCoalPayById(id));
     }
 
     /**
-     * 新增【请填写功能名称】
+     * 新增非煤缴费管理
      */
-    @PostMapping
-    public AjaxResult add(@RequestBody NonCoalPay nonCoalPay) {
+    @PostMapping("/add")
+    @ApiOperation(value = "新增非煤缴费管理")
+    public AjaxResult add(@Validated @RequestBody NonCoalPayReqDto nonCoalPay) {
         return toAjax(nonCoalPayService.insertNonCoalPay(nonCoalPay));
     }
 
     /**
-     * 修改【请填写功能名称】
+     * 修改非煤缴费管理
      */
 
-    @PutMapping
-    public AjaxResult edit(@RequestBody NonCoalPay nonCoalPay) {
+    @PostMapping("/edit")
+    @ApiOperation(value = "修改非煤缴费管理")
+    public AjaxResult edit(@Validated @RequestBody NonCoalPayReqDto nonCoalPay) {
         return toAjax(nonCoalPayService.updateNonCoalPay(nonCoalPay));
     }
 
     /**
-     * 删除【请填写功能名称】
+     * 删除非煤缴费管理
      */
-
     @DeleteMapping("/{ids}")
+    @ApiOperation(value = "删除非煤缴费管理")
     public AjaxResult remove(@PathVariable Long[] ids) {
         return toAjax(nonCoalPayService.deleteNonCoalPayByIds(ids));
     }

--
Gitblit v1.9.2